GG_save_pdf | R Documentation |
Save list of ggplot2 objects to single pdf
GG_save_pdf(list, filename)
list |
(list) List of ggplot2 objects. |
filename |
(chr) What to call the pdf. |
Invisible NULL.
#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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.