ggsave2 | R Documentation |
Wrapper around cowplot::ggsave2
to save plots
in multiple formats.
ggsave2(filename, plot, device = c("png", "pdf"), ...)
filename |
character. Name of plot (including directory, if not to save in working directory). |
plot |
gg object. Output from either ggplot2::ggplot or cowplot::plot_grid. |
device |
character vector. Devices to save in (i.e. plot format).
Default is |
... |
passed on to |
invisible(filename)
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.