export | R Documentation |
This function is in the process of being deprecated (use orca instead).
export(p = last_plot(), file = "plotly.png", selenium = NULL, ...)
p |
a plotly or ggplot object. |
file |
a filename. The file type is inferred from the file extension. Valid extensions include 'jpeg' | 'png' | 'webp' | 'svg' | 'pdf' |
selenium |
used only when |
... |
if |
For SVG plots, a screenshot is taken via webshot::webshot()
.
Since phantomjs
(and hence webshot
) does not support WebGL,
the RSelenium package is used for exporting WebGL plots.
Carson Sievert
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.