save_plots: Save multiple plots in one PDF.

Description Usage Arguments Details

View source: R/save_plots.R

Description

Convenient function for saving multiple plots stored in a list. The function can also add bookmarks to the created pdf files.

Usage

1
2
save_plots(.data, ..., files, width = 8, height = 6,
  bookmarks = NULL, gs.exec = "gs")

Arguments

.data

a tbl.

...

one or more list-columns where plots are stored.

files

character vector. One file path for each column.

width

width of the plots.

height

height of the plots.

bookmarks

Bookmarks to be added to the PDF. A list of columns generated by vars(). Columns will be interpreted as hierarchical groups and order matters. Plots will be reodered according to bookmarks in the PDF. If NULL (default), no bookmarks are added to the PDF.

gs.exec

a path to your Ghostscript executable (necessary to add bookmarks).

Details

Bookmarks are added to pdf using Ghostscript, a third party program which must be installed manually by the user. Tested on Linux only, probably not working on Windows.


fkeck/xplots documentation built on Nov. 4, 2019, 12:43 p.m.