View source: R/visualization_utils.R
save_plot | R Documentation |
Saves the given plot to a file. Supports pdf, svg, emf, png and tiff formats. If an error occurs with the plot, an empty file is created.
save_plot(p, file, ...)
p |
a ggplot object |
file |
the file path |
... |
other arguments to plot function, like width and height |
pdf
,
emf
,
svg
,
png
,
tiff
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.