Skip to contents

See ggplot2::ggsave() for saving grid plots.

Usage

save_plot(file, ...)

Arguments

file

File path where the plot will be saved (string)

...

Additional arguments to graphics device

Examples

plot(1:10)

if (FALSE) { # \dontrun{
# Typical journal options:
save_plot('test.png', width = 3.5, height = 3.5, units = 'in', res = 600)
} # }