Boxchart - How can we change the whisker length?

10 views (last 30 days)
DrZoidberg on 2 Dec 2021
Commented: DrZoidberg on 6 Dec 2021
does anybody know how to change the multiplier for the maximum whisker length for the boxchart function?
I do not want outliers determined by the 2.7*sigma deviation rule, because it is probably not normally distributed. It was easy in boxplot (by a name-value pair argument e.g. 'Whisker', 10), but I can't access the whisker poperty anymore in boxchart.

Accepted Answer

Rik on 2 Dec 2021
I doubt you can actually access this property. It is at the very least undocumented.
You will either have to use boxplot or build your own version (or use of the many from the file exchange).
When Mathworks introduced this I was surprised. It is nice to have a boxplot function that doesn't require a toolbox, but why they would want to support two separate functions is a mystery to me. Maybe they want to still push sales of the toolbox for people who want to set the Whisker property but don't want to write their own function?
  1 Comment
DrZoidberg on 6 Dec 2021
Ok then, I will go on with the boxplot_custom.m or gramm.m from the exchange server. Gratefully, the community already did the job :)

Sign in to comment.

More Answers (0)




Community Treasure Hunt

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

Start Hunting!

Translated by