save_as_svg | R Documentation |
The save_as_svg
function takes a screenshot of a htmlwidget as a SVG image.
save_as_svg(widget, filepath, background = "white", delay = 0.5)
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.