[R] trellis.par.get without opening a device?

Dieter Menne dieter.menne at menne-biomed.de
Mon Apr 24 15:44:43 CEST 2006


I am using the Deepayan's Sweave trick to set graphics parameters for all
graphs:

ltheme = canonical.theme(color=TRUE)
sup = trellis.par.get("superpose.line")
ltheme$superpose.line$col = c('black',"red","blue","#e31111","green",
"gray")
....

Works perfectly, there is only a minor nuissance that trellis.par.get opens
a device every time, producing a dummy Rplots.ps file or a window (when run
after Stangle).

Is there a way to suppress this? Well, not really serious.

Dieter




More information about the R-help mailing list