Displaying 1 result from an estimated 1 matches for "subiris".
Did you mean:
  subdirs
  
2007 Apr 20
1
xyplot: Combining 'subscripts' and 'allow.multiple=T'
...olves using the data for each panel, so I try to take this subset of data out with subscripts:
 
xyplot(Sepal.Length + Sepal.Width ~ Petal.Length | Species, 
       data = iris, allow.multiple=T, outer=F,  
       panel = function(x,y,subscripts,...) { 
            panel.xyplot(x,y,...)
            subiris <- iris[subscripts,] # Something using this ...
       } 
) 
 
and then I get 
Error in NextMethod("[") : argument "subscripts" is missing, with no default
Does anyone know how to obtain this??
 
By the way: The doc on xyplot says:  "The value of subscripts becomes slig...