Description Usage Arguments Details Examples
Make a static png file for an htmlwidget
1 | widget2png(p, file, timeout = 500)
|
p |
htmlwidget object |
file |
where to save png file |
timeout |
plot render timeout in milliseconds (see details) |
This uses phantomjs (https://phantomjs.org) to render your htmlwidget in a headless browser and take a screenshot of it, creating a static output. This assumes that phantomjs has been installed on your machine and is available as a system call. For plots that take longer to load and render, you may need to increase the value of timeout
. Note that this function is experimental.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.