[R] lattice: strange behavior (?) when using trellis.device(color=FALSE)

ottorino ottorino-luca.pantani at unifi.it
Sat Nov 27 12:00:48 CET 2010


Il giorno sab, 27/11/2010 alle 00.35 +0100, Marius Hofert ha scritto:
> The reason why I would like to use trellis.device() within a function
> is that 
> the plot contains a panel.function which contains many calls to
> panel.xyplot() 
> and I do not want to write "col = 1" (e.g.) all the time... 

Why not to use a theme like

BW.theme <-
    list(strip.background = list(col = "gray90"),
         strip.shingle = list(col=c("gray75")),  
         layout.heights = list(strip = c(1,1)),  
         axis.text = list(cex = 0.8),            
         superpose.symbol=list(col=1, pch=20)
         )
xyplot(V1~V2, par.settings = BW.theme)



More information about the R-help mailing list