adding regression curve to xyplot
On Tuesday 30 November 2004 10:18, Austin, Matt wrote:
Inside the panel, you have to only use the parts of x and y for each unique combination of factor(lonLabels[whichLon100])*factor(latLabels[whichLat100]) So use "thislm <- lm(x[subscripts]~y[subscripts])" in the panel function.
That's not true (at least in this situation). The 'x' and 'y' passed to
the panel function by xyplot are already the appropriate subsets.
('groups' would have been passed whole, had it been there.)
Deepayan