image thumbnail

Boxplots Custom

version 1.0.3 (7.14 KB) by Guillaume Talbot
Function to draw simple and specialized boxplots (grouped, horizontal, two y axis)

136 Downloads

Updated 17 Aug 2021

View License

Function which can be used to draw simple, but also specialized boxplots.
For example :
1) Horizontal boxplots
2) Grouped boxplots
3) Use a different y axis for each boxplots
4) Ignore empty boxplots
5) Display the mean value over the boxplot, and customize it
6) Change the definition of outliers. Can be the inter-quartile range or the standard deviation (and different multipliers).
7) Combine all of the above
Data inputs can ben vectors, matrixes or cells
Colors (edges, filling, outliers) can be customized
This function use the "quantile" function from the statistical toolbox. If not available, I recommend you download the "Quantiles" function by David Ferreira (https://www.mathworks.com/matlabcentral/fileexchange/70279-quantiles) and place it in your directory

Cite As

Guillaume Talbot (2021). Boxplots Custom (https://www.mathworks.com/matlabcentral/fileexchange/87734-boxplots-custom), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2020b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!