save_plot: Save plot(s)

View source: R/utils.R

save_plotR Documentation

Save plot(s)

Description

This function save a plot of a list of plots to provided path(s).

Usage

save_plot(p, path = NULL, width = 7/5, height = 7/4, ...)

Arguments

p

ggplot. A plot.

path

Character. Path(s) to save the image.

width

Numeric. Width of the image.

height

Numeric. Height of the image.

...

Other arguments passed to ggplot2::ggsave().

Value

The image path(s).

Examples

p <- ggplot2::ggplot(cars) + ggplot2::geom_point(ggplot2::aes(dist, speed))
save_plot(p)


autovi documentation built on April 3, 2025, 11:04 p.m.