Skip to content

adding regression curve to xyplot

2 messages · Austin, Matt, Deepayan Sarkar

#
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.


Matt Austin
Statistician

Amgen 
One Amgen Center Drive
M/S 24-2-C
Thousand Oaks CA 93021
(805) 447 - 7431
http://www.R-project.org/posting-guide.html
#
On Tuesday 30 November 2004 10:18, Austin, Matt wrote:
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