to_pdf: Function for repeatedly writing plots to PDFs

View source: R/plot_helpers.R

to_pdfR Documentation

Function for repeatedly writing plots to PDFs

Description

Function for repeatedly writing plots to PDFs

Usage

to_pdf(PLOT, w, h, mar = rep(1, 4))

Arguments

PLOT

a function that produces a plot

w

the requested width of the PDF

h

the requested height of the PDF

mar

the margins of the PDF, set by a call to par(mar=mar). Defaults to c(1,1,1,1)

Value

A function that takens optional arguments to the PLOT function and fname, the name of the PDF. One-off changes to w, h, and mar, are specified with width, height, and margin, respectively


dipterix/rutabaga documentation built on June 25, 2022, 2:38 p.m.