Dear all, I have the following data format cellnumber force 1 100 1 230 1 100 1 200 1 130 1 210 2 179 2 298 2 400 2 500 2 600 ........... I want to make a boxplot of the force according to the cellnumber. Here the cellnumber is actually a factor. It has 1, 2 two levels. How can I do that using boxplot? Thanks in advance Ming
On Wed, 2005-02-02 at 14:29 -0600, msck9 at mizzou.edu wrote:> Dear all, > I have the following data format > > > cellnumber force > 1 100 > 1 230 > 1 100 > 1 200 > 1 130 > 1 210 > 2 179 > 2 298 > 2 400 > 2 500 > 2 600 > ........... > I want to make a boxplot of the force according to the cellnumber. Here > the cellnumber is actually a factor. It has 1, 2 two levels. How can I > do that using boxplot?boxplot(force ~ cellnumber) See the formula method and the first example in ?boxplot HTH, Marc Schwartz
On Wed, 2 Feb 2005 14:29:49 -0600 msck9 at mizzou.edu wrote:> Dear all, > I have the following data format > > > cellnumber force > 1 100 > 1 230 > 1 100 > 1 200 > 1 130 > 1 210 > 2 179 > 2 298 > 2 400 > 2 500 > 2 600 > ........... > I want to make a boxplot of the force according to the cellnumber. > Here the cellnumber is actually a factor. It has 1, 2 two levels. How > can I do that using boxplot?Look at ?boxplot and also example(boxplot). Hint: What you want is already described in the first line of that example! Z> Thanks in advance > Ming > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html >
boxplot(force ~ cellnumber)>From: msck9 at mizzou.edu >To: r-help at stat.math.ethz.ch >Subject: [R] Boxplot by factors >Date: Wed, 2 Feb 2005 14:29:49 -0600 > >Dear all, > I have the following data format > > > cellnumber force > 1 100 > 1 230 > 1 100 > 1 200 > 1 130 > 1 210 > 2 179 > 2 298 > 2 400 > 2 500 > 2 600 > ........... >I want to make a boxplot of the force according to the cellnumber. Here >the cellnumber is actually a factor. It has 1, 2 two levels. How can I >do that using boxplot? > >Thanks in advance >Ming > >______________________________________________ >R-help at stat.math.ethz.ch mailing list >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide! >http://www.R-project.org/posting-guide.html