Description Usage Arguments Details
View source: R/fun-print_plots.R
Gather multipel existing ggplot objects and print them to one file (one plot per page).
1 | print_plots(file = "some_plots.pdf", pattern = "plot\\.[0-9]+", ...)
|
file |
file to print to |
pattern |
regular expression to locate plot objects by |
... |
arguments passed to other functions,
specifically |
This is a simple utility function. It finds all objects in the global environment whose names match a given regular expression and tries to send them to the pdf device. In an analysis where multiple plots are produced, this can help to export them into neat files, with some care for naming them.
NULL objects will be ignored
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.