Re: [R] boxplot with average instead of median

2008-08-06 Thread HBaize
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

Re: [R] boxplot with average instead of median

2008-08-05 Thread Gabor Grothendieck
Have a look at forestplot in the rmeta package. Its not a boxplot but does allow you to plot this sort of info and would probably be less confusing than a non-standard boxplot. On Tue, Aug 5, 2008 at 12:36 AM, Chad Junkermeier <[EMAIL PROTECTED]> wrote: > I really like the ease of use with the bo

Re: [R] boxplot with average instead of median

2008-08-05 Thread hadley wickham
On Mon, Aug 4, 2008 at 10:36 PM, Chad Junkermeier <[EMAIL PROTECTED]> 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 d

Re: [R] boxplot with average instead of median

2008-08-05 Thread HBaize
Look at this disscussion from two weeks ago: http://www.nabble.com/adding-the-mean-and-standard-deviation-to-boxplots-td15271398.html Chad Junkermeier 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 t

Re: [R] boxplot with average instead of median

2008-08-05 Thread Frank E Harrell Jr
Another option is to modify panel.bpplot in the Hmisc package and specify library(lattice) bwplot(..., panel=mypanel) Note that panel.bpplot will show the mean. It shows more quantiles than a standard box plot so you get more than a 3-number summary. If you show the mean and standard deviati

Re: [R] boxplot with average instead of median

2008-08-05 Thread S Ellison
boxplot itself is hardwired to produce the boxplot.stats list, and that is not easy to change. To get a different set of stats, you would need to do things in rwo stages: i) create a boxplot object of the type returned by boxplot, but using your own stats ii) call bxp on that object. That's kind

Re: [R] boxplot with average instead of median

2008-08-05 Thread Uwe Ligges
Use bxp() and feed it with data that is not from boxplot.stats(). Therefore you might want to invent some alternative function along the lines of boxplot.stats(). Uwe Ligges Chad Junkermeier wrote: I really like the ease of use with the boxplot command in R. I would rather have a boxplot t

[R] boxplot with average instead of median

2008-08-05 Thread Chad Junkermeier
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. Is there a way to do this? Chad Junkermeier, Graduate Student Dept. of Physics West Virginia Universit