boxplot
amor Gandhi wrote:
Hi gues,
This should read: Hi, guess what I want ?
amor Gandhi wrote:
Is there any function in R for boxplot with different time points? t1 <- c(rep(1,20),rep(2,20)) t2 <- c(rep(1,10),rep(2,10),rep(1,10),rep(2,10)) x <- rnorm(40,5,1) dat <- data.frame(t1,t2,x) boxplot(x~t1,t2)
This might come close library(lattice) t1 <- c(rep(1,20),rep(2,20)) t2 <- c(rep(1,10),rep(2,10),rep(1,10),rep(2,10)) x <- rnorm(40,5,1) dat <- data.frame(t1=as.factor(t1),t2=as.factor(t2),x) bwplot(x~t1|t2,data=dat) bwplot(t1+t2~x,data=dat,outer=TRUE)
View this message in context: http://www.nabble.com/boxplot-tp23752278p23767111.html Sent from the R help mailing list archive at Nabble.com.