execute code in a graphics context
with_grdev.Rd
Easily execute a code block in a specified graphics context.
Arguments
- grdev_name
the name of the graphics device, e.g. "svg" or "png"
- code
client code block
- width
width
- height
height
- res
resolution
- units
units of width and height
- ...
passed to dev_args
- par_opts
graphical parameters, rather than passed through ... in plot
- .envir
the environment in which to evaluate the code