boxplotCsub (boxplotC)
This function provides some additional propoerties to the standard boxplot display. The basic old syntax of boxplot is retained, for compatibility.
The primary purpose is to allow for GROUPED boxplots, or subplots, of color coded boxplots on the same graph. This is useful for boxplot data comparrisons over multiple variables. It is also possible to overlay boxplots or to simply color different sets differently.
This routine allows for subgroup plotting of colorcoded boxplots (boxplotCsub) using the subfunction boxplotC (which allows for multiple colored box plots to be overlayed). In addition, standard line color and line width definition is available, as well as the filled option. This allows for color coding multiple box plots and overlaying. Download ZIP contains boxplotCsub with a revised boxplotC and boxutilC.
Reverse compatible with standard boxplot old (v.2002) syntax. While less obvious than the current syntax, looking at the examples should help clarify usage for those unfamiliar with boxplot.
Due to changes in boxplot in v.2011, the old BOXPLOT syntax help has been inclued, along with several examples.
BOXPLOTC is now obsolete, and superceded by this function.
Cite As
Brian Katz (2024). boxplotCsub (boxplotC) (https://www.mathworks.com/matlabcentral/fileexchange/5316-boxplotcsub-boxplotc), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- AI and Statistics > Statistics and Machine Learning Toolbox > Descriptive Statistics and Visualization > Statistical Visualization > Box Plots >
Tags
Acknowledgements
Inspired by: boxplotC, Hatched Fill Patterns
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.9.0.0 | Added warning for h_ticklabels call when unavailable. Added additional example showing default settings usage. |
||
1.8.0.0 | Revised help to be more readable.
|
||
1.6.0.0 | Small fonctionality, such as mean symbol. Fixes to various comments by users. As the BOXPLOT syntax has changed in recent versions of MatLab, I have copied the original help syntax as that is what is used here. BOXPLTCSUB now makes BOXPLOTC obsolete. |
||
1.3.0.0 | March 2011 revision includes the addition of mean symbol and variable widths. |
||
1.2.0.0 | Rev.2010 includes modification of box widths and control of overlap. Help modified to highlight these features. |
||
1.1.0.0 | Revised description only. |
||
1.0.0.0 |