Create plots that are agnostic to publishing context.
Usage
sure_plot(
code,
width = getOption("mty.fig.width", 7),
height = getOption("mty.fig.height", 7),
res = getOption("mty.fig.res", 96),
units = getOption("mty.fig.units", "in"),
file = tempfile(),
...,
par_opts = list(),
.envir = parent.frame()
)
Arguments
- code
client code
- width
width
- height
height
- res
resolution dpi
- units
units of width and height
- file
a file, mapped to filename, if the device expects it
- ...
parameters passed to device args
- par_opts
graphics pararameters
- .envir
the environment in which to evaluate the client code