Description Usage Arguments Value Examples
Takes a list of plot objects and builds a pdf document with those plots.
1 2 | export_pdf(plot_list, pdf_path, overwrite = TRUE, height = 8.5,
width = 11)
|
plot_list |
List containing plot objects. |
pdf_path |
Path for output pdf that will be created. Should end in ".pdf". |
overwrite |
Logical indicating whether to overwrite an existing directory with the same path. Defaults to |
height |
Numeric object describing height of graphics device. Default unit is inches. |
width |
Numeric object describing width of graphics device. Default unit is inches. |
A directory with the elements of plot_list
as png files
1 2 3 4 5 6 7 | ## Not run:
plots <- mtcars %>% split(.$cyl) %>%
purrr::map(~ ggplot(., aes(mpg, disp)) +
geom_point())
export_pdf(plots, "~/Desktop/mtcars_plots_by_cyl.pdf")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.