Re: [R] indexing within panels in xyplot

2006-02-21 Thread Deepayan Sarkar
On 2/21/06, Sebastian Luque [EMAIL PROTECTED] wrote: Dear R-helpers, I need to show a linear fit through a subset of the data within each combination of levels of two factors. So I prepared an xyplot with different panels for each level of one of the factors, and different symbols within

Re: [R] indexing within panels in xyplot

2006-02-21 Thread Sebastian Luque
Deepayan Sarkar [EMAIL PROTECTED] wrote: [...] Well, there are exceptions to this rule, but generally x and y, when they are passed on to the panel function, are _already_ subsetted, so x[subscripts] makes absolutely no sense. Note how your panel function calls panel.xyplot(x, y, ...)

Re: [R] indexing within panels in xyplot

2006-02-21 Thread Deepayan Sarkar
On 2/21/06, Sebastian Luque [EMAIL PROTECTED] wrote: Deepayan Sarkar [EMAIL PROTECTED] wrote: [...] Well, there are exceptions to this rule, but generally x and y, when they are passed on to the panel function, are _already_ subsetted, so x[subscripts] makes absolutely no sense. Note how

[R] indexing within panels in xyplot

2006-02-20 Thread Sebastian Luque
Dear R-helpers, I need to show a linear fit through a subset of the data within each combination of levels of two factors. So I prepared an xyplot with different panels for each level of one of the factors, and different symbols within each panel for the levels of the second factor. My problem

Re: [R] indexing within panels in xyplot

2006-02-20 Thread Frede Aakmann Tøgersen
:20 Til: r-help@stat.math.ethz.ch Emne: [R] indexing within panels in xyplot Dear R-helpers, I need to show a linear fit through a subset of the data within each combination of levels of two factors. So I prepared an xyplot with different panels for each level of one of the factors