ggsave_all: Save many ggplots

View source: R/ggsave_all.R

ggsave_allR Documentation

Save many ggplots

Description

Loops through ggplots and their respective figure names and saves them.

Usage

ggsave_all(plots, names, width, height, dpi = 300)

Arguments

plots

A list of ggplot objects

names

A vector of file names (where to save each plot)

width, height, dpi

Single values to be passed to ggsave

Note

The same width, height and dpi is used for all the plots

See Also

ggplot2::ggsave

Examples


## Not run: 

plot1 <- ggplot2::quickplot()
plot2 <- plot1
ggsave_all(list(plot1, plot2), c("p1.png", "p2.png"), width = 3, height = 3)


## End(Not run)


rscherrer/speciomer documentation built on March 11, 2023, 5:37 p.m.