Re: [R] Impaired boxplot functionality - mean instead of median

From: Martin Maechler <maechler_at_stat.math.ethz.ch>
Date: Fri 02 Dec 2005 - 03:16:07 EST

Boxplots were invented by John W. Tukey and I think should be counted among the top "small but smart" achievements from the 20th century. Very wisely he did *not* use mean and standard deviations.

Even though it's possible to draw boxplots that are not boxplots (and people only recently explained how to do this with R on this  mailing list), I'm arguing very strongly against this.

If I see a boxplot - I'd want it to be a boxplot and not have the silly (please excuse) 10%--------90% whiskers which declare 20% of the points as outliers {in the boxplot sense}.

If you want the mean +/- sd plot, do *not* misuse boxplots for them, please!

Martin Maechler, ETH Zurich

>>>>> "Evgeniy" == Evgeniy Kachalin <ka4alin@yandex.ru>
>>>>> on Thu, 01 Dec 2005 19:04:47 +0300 writes:

    Evgeniy> Hello to all users and wizards.
    Evgeniy> I am regulary using 'boxplot' function or its analogue - 'bwplot' from 
    Evgeniy> the 'lattice' library. 

 [there's the lattice *package* !]

    Evgeniy> But they are, as far as I understand, totally 
    Evgeniy> flawed in functionality: they miss ability to select what they would 
    Evgeniy> draw 'in the middle' - median, mean. What the box means - standard 
    Evgeniy> error, 90% or something else. What the whiskers mean - 100%, 99% or 
    Evgeniy> something else.
    Evgeniy> Is there any way to realize it? Or is there any other good data 
    Evgeniy> visualization function for comparing means of various data groups? 
    Evgeniy> Ideally I would like to have a bit more customised function for doing 
    Evgeniy> that. For example, 'boxplot(a~b,data=d,mid='mean').


    Evgeniy> --
    Evgeniy> Evgeniy, ICQ 38317310.



R-help@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 Received on Fri Dec 02 03:25:59 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:41:25 EST