Re: [R] How to control in order of groups in xyplot

2010-10-31 Thread Peter Ehlers
On 2010-10-31 01:19, Rainer Hurling wrote: A working minimal example would have been better, see FAQ. But I think you are looking for the following: X2<- factor(c("m=2", "m=5", "m=10"), levels=c("m=2", "m=5", "m=10")) Here levels are ordered in your way. There might be other solutions for this

Re: [R] How to control in order of groups in xyplot

2010-10-31 Thread Rainer Hurling
A working minimal example would have been better, see FAQ. But I think you are looking for the following: X2 <- factor(c("m=2", "m=5", "m=10"), levels=c("m=2", "m=5", "m=10")) Here levels are ordered in your way. There might be other solutions for this ordering problem. Hope it helps, Rainer