Skip to content
Prev 7971 / 29559 Next

how to pass panel index in spplot

Dear Weidong,

for multi-group panel functions, the way to retrieve subscripts in
custom panel functions is

panel = function(x,y,subscripts, ...) {
 ... # do sth with subscripts here
}

see also

library(lattice)
?panel.superpose

I hope this helped,
Weidong Gu wrote: