GG_save_pdf: Save list of ggplot2 objects to single pdf

View source: R/plotting.R

GG_save_pdfR Documentation

Save list of ggplot2 objects to single pdf

Description

Save list of ggplot2 objects to single pdf

Usage

GG_save_pdf(list, filename)

Arguments

list

(list) List of ggplot2 objects.

filename

(chr) What to call the pdf.

Value

Invisible NULL.

Examples

#plot histogram of each numeric variable in iris
list_iris = map(names(iris[-5]), ~ggplot(iris, aes(.data[[.]])) + geom_histogram())
#save to a single pdf
GG_save_pdf(list_iris, "test.pdf")
file.remove("test.pdf")

Deleetdk/kirkegaard documentation built on April 22, 2024, 5:22 p.m.