[R] lattice: par.settings: custom axis.line by panel
    Benjamin Tyner 
    btyner at gmail.com
       
    Fri Apr  8 02:40:57 CEST 2011
    
    
  
Hello,
In lattice, is there a way to customize the axis.line by panel? For 
example, say I have two panels:
Data <- data.frame(x=runif(10),
                   y=rnorm(10),
                   f=gl(2,5)
                   )
library(lattice)
plot <- xyplot(y ~ x|f,
               data = Data,
               layout=c(2,1),
               scales=list(relation="free",alternating=FALSE),
               par.settings = list(axis.line=list(lwd=0))
               )
and desire lwd=0 for one panel and lwd=1 for the other. Can it be done? 
If not, can the desired behavior be mimicked by explicit use of (say) 
grid::grid.rect() within the panel function?
Thanks,
Ben
    
    
More information about the R-help
mailing list