ggsave2: Save plot in multiple formats using cowplot::ggsave2

View source: R/save_plot.R

ggsave2R Documentation

Save plot in multiple formats using cowplot::ggsave2

Description

Wrapper around cowplot::ggsave2 to save plots in multiple formats.

Usage

ggsave2(filename, plot, device = c("png", "pdf"), ...)

Arguments

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 c("png", "pdf").

...

passed on to cowplot::ggsave2.

Value

invisible(filename).


SATVILab/UtilsGGSV documentation built on Nov. 8, 2024, 8:41 p.m.