Save a list of ggplot plots as a PDF, with a grid of nrow
by ncol
plots per page
Source: R/plot_utils.R
plots_to_pdf.Rd
Save a list of ggplot plots as a PDF, with a
grid of nrow
by ncol
plots per page
Arguments
- list_of_plots
List of plots to save to PDF.
- save_path
Path to which to save the plots. Must end in
.pdf
.- nrow
Number of rows of plots per page (passed to
gridExtra::marrangeGrob()
) Default1
.- ncol
Number of columns of plots per page (passed to
gridExtra::marrangeGrob()
). Default1
.- width
page width in device units (passed to
ggplot2::ggsave()
). Default8.5
.- height
page height in device units (passed to
ggplot2::ggsave()
). Default11
.