[R] any way to set defaults for par?

Greg Snow Greg.Snow at imail.org
Mon Jul 14 22:04:42 CEST 2008

Write a function that opens a new graphics window (quartz in your case) then changes the parameters to what you want as the default.  Then any time you want/need a new graphics window, call your function.

Also look at ?options and scroll down to 'device' and ?Startup

Hope this helps,

Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
(801) 408-8111

> -----Original Message-----
> From: r-help-bounces at r-project.org
> [mailto:r-help-bounces at r-project.org] On Behalf Of Carl Witthoft
> Sent: Sunday, July 13, 2008 4:31 PM
> To: r-help at r-project.org
> Subject: [R] any way to set defaults for par?
> I know how to set graphic parameters by calling par(), but
> what I'd like is a way to set the default values so that
> subsequent calls to par() use my defaults.  The reason to
> want this is that every time I create a new graphic window
> (I'm using quartz on OSX, and so far no answers in the Mac
> mailing list), my parameters get reset to the builtin defaults.
> I read about the "unexported variable .Pars," but would like
> to know if there's any way to manipulate that variable.
> thanks
> Carl
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list