withPar.Rd
Evaluate an R expression with graphical parameters set temporarily.
withPar(expr, ..., args=list(), envir=parent.frame())
The R expression to be evaluated.
Named options to be used.
(optional) Additional named options specified as a named list
.
The environment
in which the expression should be evaluated.
Returns the results of the expression evaluated.
Upon exit (also on errors), this function will reset all
(modifiable) graphical parameters to the state of options available
upon entry. This means any parameters modified from evaluating
expr
will also be undone upon exit.