[R] boxplot with average instead of median

HBaize HBaize at buttecounty.net
Wed Aug 6 17:23:26 CEST 2008


Hadley makes a good point. Boxplots should be standardized. Thre is already
inconsistency in what value the "wiskers" represent. 

Violin plots with means and 95% CI are a good option if you want to show the
shape of a distribution with the mean. You could add the median as well.
That's what I did in the code I posted in this thread:

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


hadley wrote:
> 
> On Mon, Aug 4, 2008 at 10:36 PM, Chad Junkermeier <junkermeier at byu.edu>
> wrote:
>> I really like the ease of use with the boxplot command in R.  I would
>> rather
>> have a boxplot that shows the average value and the standard deviation
>> then
>> the median value and the quartiles.
> 
> I would suggest that you don't do this.  Most people looking at the
> boxplots will expect to see the tradition Tukey boxplot with medians
> and quartiles, and are likely to misinterpret the graph.
> 
> Why do you want to display means and standard deviations?
> 
> Hadley
> 
> 
> -- 
> http://had.co.nz/
> 
> ______________________________________________
> 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.
> 
> 

-- 
View this message in context: http://www.nabble.com/boxplot-with-average-instead-of-median-tp18826179p18853580.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list