Re: [R] lattice histogram function and groups

2011-04-01 Thread Deepayan Sarkar
On Sat, Mar 19, 2011 at 6:11 AM, Evans, David G (DFG) wrote: > Hi, > > >From the following code (tweaked from another user): > > > > variable<-sample(rep(1:2,100)) > > individual<-rep(1:3, length(variable)) > > group<-rep(LETTERS[1:2],length(variable)/2) > > mydata<-data.frame(variable,individual,

[R] lattice histogram function and groups

2011-03-18 Thread Evans, David G (DFG)
Hi, >From the following code (tweaked from another user): variable<-sample(rep(1:2,100)) individual<-rep(1:3, length(variable)) group<-rep(LETTERS[1:2],length(variable)/2) mydata<-data.frame(variable,individual,group) individual<-as.factor(individual) group<-as.factor(group) histogram(~