orca {plotly} | R Documentation |
The function makes a system call to the orca command-line utility, see the installation instructions here
orca(p, file = "plot.png", format = tools::file_ext(file), scale = NULL, width = NULL, height = NULL, mathjax = FALSE, parallel_limit = NULL, verbose = FALSE, debug = FALSE, safe = FALSE)
p |
a plotly object. |
file |
output filename. |
format |
the output format (png, jpeg, webp, svg, pdf, eps). |
scale |
Sets the image scale. Applies to all output images. |
width |
Sets the image width. If not set, defaults to |
height |
Sets the image height. If not set, defaults to |
mathjax |
whether or not to include MathJax (required to render TeX).
If |
parallel_limit |
Sets the limit of parallel tasks run. |
verbose |
Turn on verbose logging on stdout. |
debug |
Starts app in debug mode and turn on verbose logs on stdout. |
safe |
Turns on safe mode: where figures likely to make browser window hang during image generating are skipped. |
Carson Sievert
## Not run: p <- plot_ly(z = ~volcano) %>% add_surface() orca(p, "surface-plot.svg") ## End(Not run)