[R] Boxplot in R

Larry Xie larryxie at gmail.com
Mon Jul 11 01:10:04 CEST 2005


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.

Larry




More information about the R-help mailing list