[R] lattice: defining grouping variable only for the upper/lower panel with splom

AnjaM a.mirenska at gmail.com
Mon Nov 19 13:42:59 CET 2012


Using the mtcars dataset, how to define the grouping variable to be valid
only for the upper or lower panel?

The following doesn't work:

# Code start

splom(~data.frame(mpg, disp, hp, drat, wt, qsec),
      data=mtcars, pscales=0,
      auto.key=list(columns=3),
      upper.panel = function(...){
        panel.grid(...)
        panel.xyplot(groups=cyl,...)
      }
)

# Code end



--
View this message in context: http://r.789695.n4.nabble.com/lattice-defining-grouping-variable-only-for-the-upper-lower-panel-with-splom-tp4650033.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list