Re: [R] xyplot: subscripts, groups and subset

2009-06-22 Thread Dieter Menne
Auty, Dave forestry.gsi.gov.uk> writes: > > I'm running the following code to produce lattice plots of microfibril > angle versus ring number in Scots pine. There are 12 trees and 5 sample > positions ("Position") in each tree: > > xyplot(MFA ~ RN | Tree, data = MFA.data, > >groups =

Re: [R] xyplot: subscripts, groups and subset

2009-06-22 Thread Auty, Dave
Hi, I'm running the following code to produce lattice plots of microfibril angle versus ring number in Scots pine. There are 12 trees and 5 sample positions ("Position") in each tree: xyplot(MFA ~ RN | Tree, data = MFA.data, groups = Position, subscripts=TRUE, auto.key=list

Re: [R] xyplot: subscripts, groups and subset

2008-05-16 Thread Deepayan Sarkar
On 5/16/08, Jim Price <[EMAIL PROTECTED]> wrote: > > I have stumbled across something in the Lattice package that is vexing me. > Consider the code below: > __ > > library(lattice) > > > myData <- expand.grid(sub = factor(1:16), time = 1:

[R] xyplot: subscripts, groups and subset

2008-05-16 Thread Jim Price
I have stumbled across something in the Lattice package that is vexing me. Consider the code below: __ library(lattice) myData <- expand.grid(sub = factor(1:16), time = 1:10) myData$observed <- rnorm(nrow(myData)) myData$fitted <- with(my