[R] resetting par() to all defaults: par(reset=TRUE) ?

deepayan.sarkar at gmail.com deepayan.sarkar at gmail.com
Sun Sep 30 05:32:06 CEST 2007


On 9/29/07, Michael Friendly <friendly at yorku.ca> wrote:
> In a long session, producing multiple graphs, I sometimes repeatedly
> change par() settings, particularly with multi-row/col displays.
> If I'm using a script, I'll do
>
> op <- par(newsettings)
> ... plots ...
> par(op)
>
> but sometimes I do things on the fly and can't easily back out
> to the default settings.  I'm looking for someway to do the
> equivalent of
>
> par(reset=TRUE)

par()s get reset every time a new device is opened, so one option is
to just close the device (dev.off()) and continue.

-Deepayan



More information about the R-help mailing list