Is there a way to create a boxplot in MATLAB 7.7 (R2008b) so that the notches are less unattractive?

3 views (last 30 days)
When I create a boxplot in MATLAB 7.7 (R2008b), I dislike the apperance of the notches when they extend outside the box. I want an alternative boxplot that looks more attractive.
Reproduction code:
load hogg
boxplot(hogg,'notch','on')

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 28 Jan 2010
This change has been incorporated into the documentation in Release 2009b (R2009b). For previous releases, read below for any additional information:
The notches on a boxplot made in MATLAB 7.7 (R2008b) are intended to give an indication of the uncertainty in estimating the median. They can be used to do a graphical comparison of whether one median is significantly different from another.
If you wish to create a boxplot without the notches, use the 'marker' option that uses triangle markers to indicate notch positions as shown below:
load hogg
boxplot(hogg,'notch','marker')
Tukey (inventor of the box plot) and co-authors show this display in the paper "Variations of Box Plots," Robert McGill, John W. Tukey, and Wayne A. Larsen, ''The American Statistician'', Vol. 32, No. 1. (Feb., 1978), pp. 12-16. See figure F of that paper.
Note that for the above method, the comparison intervals are the ones that extend between the centers of the two triangles.

More Answers (0)

Products


Release

R2008b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!