View source: R/save_plot_png.R
save_plot_png | R Documentation |
Save the plots to disk
save_plot_png(
plot,
out_dir,
suffix = "",
width = 17,
height = 12,
units = "cm",
dpi = 200,
scale = 1.2,
device = NULL,
path = lifecycle::deprecated()
)
plot |
A list of ggplots : output of |
out_dir |
The path to the directory where to save the plots |
suffix |
A suffix to append to the file name |
width |
The plot width |
height |
The plot heigth |
units |
The units for plot width and heigth in
|
dpi |
The plot resolution. |
scale |
The scaling factor. |
device |
Device to use. Can either be a device function (e.g. png()), or one of "eps", "ps", "tex" (pictex), "pdf", "jpeg", "tiff", "png", "bmp", "svg" or "wmf" (windows only). |
path |
The function uses ggplot2::ggsave()
under the hood.
Save the plots to path
, named by the situation name,
and returns the plots invisibly for piping.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.