Hi gues, 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) Many thanks, Amor [[alternative HTML version deleted]]
I don't understand what you want. On Wed, May 27, 2009 at 6:52 PM, <amorigandhi at yahoo.de> wrote:> Hi gues, > > 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) > > > Many thanks, > Amor > > > > ? ? ? ?[[alternative HTML version deleted]] > > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > >-- Stephen Sefick Let's not spend our time and resources thinking about things that are so little or so large that all they really do for us is puff us up and make us feel like gods. We are mammals, and have not exhausted the annoying little problems of being mammals. -K. Mullis
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.