Box Plot with Whiskers Plotted at Fixed Percentiles
by Robert
24 Dec 2008
(Updated 19 May 2009)
This script uses boxplot but plots the whiskers for a specified percentile.
|
Watch this File
|
| File Information |
| Description |
Normally boxplot plots the whiskers with a maximum length based on the distance between the 25th and 75th percentile. This script uses boxplot but plots the whiskers for a specified percentile and only plots the outliers beyond the new whiskers.
Note that the percentile is defined as the data point just beyond the calculated percentile. For example, if the 98th percentile lies between the 4th and 5th highest data points, then the 4th highest data point will be considered the 98th percentile, the whisker will extend to the 4th highest, and only the 4 highest values will be plotted as outliers. |
| Acknowledgements |
The author wishes to acknowledge the following in the creation of this submission:
Quartile & Percentile Calculation
|
| Required Products |
Statistics Toolbox
|
| MATLAB release |
MATLAB 7.7 (R2008b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 19 May 2009 |
Thanks, Peter, for pointing out the dependence on nanfree. I have added that function to the file. Also note that you need the statistics toolbox to access "boxplot" |
|
Contact us at files@mathworks.com