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

View source: R/save_plot.r

save_plotR Documentation

Save plot in multiple formats using cowplot::save_plot

Usage

save_plot(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")).} } { invisible(filename). } { Wrapper around cowplot::save_plot to save plots in multiple formats. } { This function should be copied to another package/report rather than run from alwaysloaded, as alwaysloaded is simply a convenience package. }


MiguelRodo/alwaysloaded documentation built on Nov. 7, 2023, 5:18 p.m.