Skip to content
Prev 181730 / 398503 Next

boxplot

amor Gandhi wrote:
This should read: Hi, guess what I want
?
amor Gandhi wrote:
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)