save_as_svg: Save a SVG screenshot of a htmlwidget

View source: R/save_as_svg.R

save_as_svgR Documentation

Save a SVG screenshot of a htmlwidget

Description

The save_as_svg function takes a screenshot of a htmlwidget as a SVG image.

Usage

save_as_svg(widget, filepath, background = "white", delay = 0.5)

Arguments

widget

a htmlwidget

filepath

a filepath where to save the file

background

the background color underneath/behind the htmlwidget

delay

a delay (in seconds) to wait before taking the screenshot


cjyetman/network.r2d3 documentation built on Aug. 9, 2024, 10:38 p.m.