[R] Boxplot in R
ramasamy at cancer.org.uk
Mon Jul 11 04:04:44 CEST 2005
Just an addendum on the philosophical aspect of doing this.
By selecting the 5% and 95% quantiles, you are always going to get 10%
of the data as "extreme" and these points may not necessarily outliers.
So when you are comparing information from multiple columns (i.e.
boxplots), it is harder to say which column contains more extreme value
compared to others etc.
On Sun, 2005-07-10 at 18:10 -0500, Larry Xie wrote:
> I am trying to draw a plot like Matlab does:
> The upper extreme whisker represents 95% of the data;
> The upper hinge represents 75% of the data;
> The median represents 50% of the data;
> The lower hinge represents 25% of the data;
> The lower extreme whisker represents 5% of the data.
> It looks like:
> --- 95%
> ------- 75%
> | |
> |-----| 50%
> | |
> | |
> ------- 25%
> --- 5%
> Anyone can give me some hints as to how to draw a boxplot like that?
> What function does it? I tried boxplot() but couldn't figure it out.
> If it's boxplot(), what arguments should I pass to the function? Thank
> you for your help. I'd appreciate it.
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
More information about the R-help