Hi Petr,

On Thursday 01 March 2007 21:50, Petr Klasterecky wrote:
> I am no expert on these topics but currently I am solving a similar
> issue using the .Rprofile file and the .First function. So maybe it's
> enough to put
> .First <- function(){
> par(whatever you want)
> further instructions if neccessary
> }

thanks for your suggestion. The problem in this particular case is that the 
par() options are kept separate for each created device. Hence the defaults 
would need to be set while the device is created (or directly afterwards), 
and simply setting them once on startup won't work.

E.g.:
par(bg="blue")  # creates a new x11 (or system default) device
par("bg")                       # "blue"
dev.off()
par("bg")                       # creates a new device; "transparent"
dev.off()

X11()                   # or windows()/quartz()/...
par(bg="blue")
par("bg")                       # "blue"
dev.off()
X11()                   # or windows()/quartz()/...
par("bg")                       # "transparent"
dev.off()

Regards
Thomas Friedrichsmeier

Attachment: pgpf2lTxzYfiC.pgp
Description: PGP signature

______________________________________________
[email protected] 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.

Reply via email to