ggsave_all | R Documentation |
Loops through ggplots and their respective figure names and saves them.
ggsave_all(plots, names, width, height, dpi = 300)
plots |
A list of ggplot objects |
names |
A vector of file names (where to save each plot) |
width, height, dpi |
Single values to be passed to |
The same width
, height
and dpi
is used for all
the plots
ggplot2::ggsave
## Not run: plot1 <- ggplot2::quickplot() plot2 <- plot1 ggsave_all(list(plot1, plot2), c("p1.png", "p2.png"), width = 3, height = 3) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.