Re: [R] adding the mean and standard deviation to boxplots

2008-07-23 Thread Fernando Marmolejo-Ramos
Dear users This is a message I was directing to Harold Baize but because I pressed the wrong button the message got lost g!!! So I’m doing it all over again: Lets suppose I have three batches of data: a - rnorm(50,2500,300) b - rnorm(50,3500,250) c - rnorm(50,4000,200) # Now I want to

Re: [R] adding the mean and standard deviation to boxplots

2008-07-23 Thread jim holtman
?bxp This is the underlying routine called by boxplot and you can supply your own values to the 5 that define a boxplot. On Wed, Jul 23, 2008 at 2:24 AM, Fernando Marmolejo-Ramos [EMAIL PROTECTED] wrote: Dear users This is a message I was directing to Harold Baize but because I pressed the

Re: [R] adding the mean and standard deviation to boxplots

2008-07-23 Thread John Kane
This thread may help http://www.nabble.com/adding-the-mean-and-standard-deviation-to-boxplots-td15271398.html --- On Wed, 7/23/08, Fernando Marmolejo-Ramos [EMAIL PROTECTED] wrote: From: Fernando Marmolejo-Ramos [EMAIL PROTECTED] Subject: Re: [R] adding the mean and standard deviation to

Re: [R] adding the mean and standard deviation to boxplots

2008-07-23 Thread HBaize
Fernando, I don't have time to do all that you asked, but here is some code that makes violin plots with mean, median, and 95% CI. I like this plot very much, even if boxplot purists think it is horrible :-) I think the boxplot was developed before we had computing power. Now we can show the

Re: [R] adding the mean and standard deviation to boxplots

2008-02-05 Thread Felipe Carrillo
Tom: You can do this with ggplot2. The code below puts 95% CI,a smooth line and the mean(blue point)on the same plot. Felipe library(ggplot2) r - ggplot(ToothGrowth, aes(y=len, x=factor(dose))) r$background.fill = cornsilk r + geom_boxplot(aes(colour=supp)) +

[R] adding the mean and standard deviation to boxplots

2008-02-04 Thread Tom Cohen
Dear list, How can I add the mean and standard deviation to each of the boxplots using the example provided in the boxplot function? boxplot(len ~ dose, data = ToothGrowth, boxwex = 0.25, at = 1:3 - 0.2, subset = supp == VC, col = yellow, main = Guinea Pigs'

Re: [R] adding the mean and standard deviation to boxplots

2008-02-04 Thread Gabor Grothendieck
Not precisely what you asked for but see the notch= argument to boxplot for a graphic measure of variability. If you simply wish to print certain statistics below the numbers already on the X axis then see: https://stat.ethz.ch/pipermail/r-help/2008-January/152994.html On Feb 4, 2008 10:41 AM,

Re: [R] adding the mean and standard deviation to boxplots

2008-02-04 Thread Richard . Cotton
As for the standard deviation, are you sure you want this? Standard deviation only makes sense if the data are normally distributed... -- -- This is false, of course. What you probably meant to say is something like: The sample standard deviation may not tell you what you

Re: [R] adding the mean and standard deviation to boxplots

2008-02-04 Thread HBaize
There are many ways to do it. The following will place a blue point on the boxplot at the mean, then print the mean at the bottom of the plot. In some plots I've gone too far and included median points and values as well. You could also put 95% CI on the same plot, but it would get perhaps too