[R] par() defaults in Rprofile

Sebastian Luque sluque at mun.ca
Wed Oct 20 17:13:43 CEST 2004

Dear List,

I've tried to set default par() in .Rprofile by putting the following in
the .First function:

  setHook(packageEvent("graphics", "onLoad"),
          function(...) {graphics::par(cex.axis=1.5, cex.lab=2, las=1)}

My goal was to set par() defaults without opening a device everytime at
startup. However, the next plot I create doesn't show these defaults. Any
suggestions? Thanks in advance.

OS = GNU/Linux Debian
R version = 2.0
Best wishes,

More information about the R-help mailing list