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
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
Hi guys,
I used the following R code to generate one plot
library(lattice)
xyplot(Y~X1|as.factor(X2)*as.factor(X3), groups = as.factor(X4),
data=mydata)
Both X2 and X3 have three values. X4 has two values. I got 3x3 grids and in
each grid there are two curves about y~x1 for the two X4 values. I
3 matches
Mail list logo