as_pdf: pdf wrapper that evaluates an arbitrary expression.

View source: R/plot_helpers.R

as_pdfR Documentation

pdf wrapper that evaluates an arbitrary expression.

Description

pdf wrapper that evaluates an arbitrary expression.

Usage

as_pdf(fname, w, h, expr, TEST = FALSE, bg = "white")

Arguments

fname

file path

w

the requested width of the PDF

h

the requested height of the PDF

expr

the expression to evaluate to produce the plot

TEST

if FALSE (the default) print to PDF, otherwise print to the current graphics device

bg

set the background color of the PDF, defaults to 'white'

Value

the output of the resulting expression (the plot is likely produced by side effect but may additionally 'return' a value)


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