Re: [R] plotting order of lines in xyplot panels while using conditioning variable and groups

2007-06-20 Thread RICHARD PITMAN
--- Deepayan Sarkar <[EMAIL PROTECTED]> wrote: > On 6/19/07, RICHARD PITMAN > <[EMAIL PROTECTED]> wrote: > > I have tried reordering > the > > levels in data$group: > > > > data$group<-factor(data$group, > > levels=c("CV_model_event_1","CV model event 2","CV > > event > > > 1","CV_event_2","CV_e

Re: [R] plotting order of lines in xyplot panels while using conditioning variable and groups

2007-06-19 Thread Deepayan Sarkar
On 6/19/07, RICHARD PITMAN <[EMAIL PROTECTED]> wrote: > I am using the following code: > > library(lattice) > data<-read.csv("data.csv") > attach(data) > > fig<-xyplot(S_t~month|event, >key= list(text=list(lab=c("Time to first CV > event - Data", > "

[R] plotting order of lines in xyplot panels while using conditioning variable and groups

2007-06-19 Thread RICHARD PITMAN
I am using the following code: library(lattice) data<-read.csv("data.csv") attach(data) fig<-xyplot(S_t~month|event, key= list(text=list(lab=c("Time to first CV event - Data", "Survival post first CV event - Model",