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

From: John Kane <jrkrideau_at_yahoo.ca>
Date: Wed, 23 Jul 2008 06:18:07 -0700 (PDT)


This thread may help
http://www.nabble.com/adding-the-mean-and-standard-deviation-to-boxplots-td15271398.html

> From: Fernando Marmolejo-Ramos <fernando.marmolejoramos_at_adelaide.edu.au>
> Subject: Re: [R] adding the mean and standard deviation to boxplots
> To: r-help_at_r-project.org
> Received: Wednesday, July 23, 2008, 2:24 AM
> Dear users
>
> This is a message I was directing to Harold Baize but
> because I pressed the
> wrong button the message got lost grrrr!!!
>
> 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 plot them as boxplots and violin plots
> require(vioplot)
> vioplot (a,b,c, horizontal=T, col=“white”)
> boxplot (a,b,c, horizontal=T, col=“white”)
>
> As we know boxplot show the least-greates values,
> lower-upper quartiles, the
> mean, and outliers (when present).
>
> However, for some data is not important the MEDIAN but the
> MEAN. Also, it is
> more relevant to show ERROR BARS instead of quartiles.
>
> So, how could I see (for the batches of data I introduced
> above)…
>
> 1. a boxplot showing the MEAN and the SD instead of the
> lower/upper
> quartile?
> 2. a boxplot showing the MEAN and the STANDARD ERROR OF THE
> MEAN instead of
> the lower/upper quartile?
> 3. a boxplot showing the MEAN and the 95% CI instead of the
> lower/upper
> quartile?
>
> (I think in all these cases is preferable to have visual
> access, or to have
> the line that shows, the LEAST and the GREATEST VALUES.)
>
> In other words, that the ERROR BARS (95% CI, SD, SE)
> proposed here take the
> place of the boxes usually used to represent the
> lower/upper quartile.
>
> Now, the big question, is all this jazz possible to be
> implemented in violin
> plots as well?
>
> How could that be done?
>
> Cheers,
>
> Fernando
> --
> View this message in context:
> http://www.nabble.com/adding-the-mean-and-standard-deviation-to-boxplots-tp15271398p18604571.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.



Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! Canada Messenger at http://ca.beta.messenger.yahoo.com/

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. Received on Wed 23 Jul 2008 - 14:23:48 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 23 Jul 2008 - 15:02:18 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive