resetPar: resetPar

Description Usage Details Value Author(s) References See Also Examples

View source: R/aveytoolkit_resetPar.R

Description

Simple function to reset plotting parameters for when things get wonky

Usage

1

Details

This function resets the graphical parameters from the par function. It flashes a new device on the screen but works to reset parameters. Meant to be used when things get hairy and not coded in scripts

Value

an invisible named list of parameters returned by calling par

Author(s)

Gavin Simpson

References

http://stackoverflow.com/questions/5789982/reset-par-to-the-default-values-at-startup

See Also

par

Examples

1
2
3
4
5
par(oma=c(4,10,2,1))
plot(1,1)
## paramter settings weren't saved so do a reset
resetPar()
plot(1,1)

stefanavey/aveytoolkit documentation built on March 5, 2020, 12:49 a.m.