[R] How to change par globally?

apjaworski@mmm.com apjaworski at mmm.com
Mon Mar 11 06:47:21 CET 2002


I have a feeling that this is a simple one, but I cannot figure it out.

I want to change the default plotting character for all my plots to pch=20
(small filled circle).  I thought that putting par("pch"=20) in my Rprofile
would do it, but it only seems to work for a single invocation of a
graphical device, that is if I start a second device (windows() in my case)
the plotting symbol reverts to 1 (large hollow circles).

The only thing that works for me is redefinition of plot.default and
points.default functions.  I just typed, say, plot.default in an R console,
copied the definition and pasted it into Rprofile and changed the pch=par
("pch") to pch=20.  However, redefining basic functions seems rather kludgy
to me.  Is there a simpler and batter way?

Thanks in advance,

Andy

__________________________________
Andy Jaworski
Engineering Systems Technology Center
3M Center, 518-1-01
St. Paul, MN 55144-1000
-----
E-mail: apjaworski at mmm.com
Tel:  (651) 733-6092
Fax:  (651) 736-3122

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list