save_plotlist: Save lists of plots.

Description Usage Arguments Details

View source: R/plotlist.R

Description

Recursively save plots in a (nested) list, allowing you to generate all plots during an analysis and then plot them afterwards. Use labeled_plot to add properties so that plots can be easily saved automatically.

Usage

1
2
3
4
5
6
7
save_plotlist(
  plotlist,
  root,
  overwrite = c("none", "all", "plot"),
  verbose = 1,
  default_format = "pdf"
)

Arguments

plotlist

Potentially nested list of plot objects.

root

Root directory to save to.

overwrite

Whether to overwrite existing files, with "plot" respecting the property stored in a labeled_plot.

verbose

Maximum list depth to report saving

default_format

Default file format to save in

Details

This function uses the smart_save method to save plots, respecting the attributes of labeled_plot objects. Nested levels of the list will be saved in subfolders


allydunham/plotlistr documentation built on Feb. 19, 2020, 4:28 a.m.