Code covered by the BSD License  

Highlights from
boxplotCsub (boxplotC)

3.71429

3.7 | 7 ratings Rate this file 29 Downloads (last 30 days) File Size: 8.94 KB File ID: #5316
image thumbnail

boxplotCsub (boxplotC)

by

 

20 Jun 2004 (Updated )

Revised version of boxplotC to allow coloring and subgroup plotting of boxplots.

| Watch this File

File Information
Description

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 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.

2012: Revised help and errors when using RGB color definitions.

Acknowledgements

Boxplot C and Hatched Fill Patterns inspired this file.

Required Products Statistics Toolbox
MATLAB release MATLAB 7.4 (R2007a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (9)
21 Feb 2014 Anton Semechko

Thanks for making this function available Brian. I downloaded it mainly because of the feature that allows grouping of multiple box-plots (this option is specified by 'cur_tot' variable). Although at first glance this function seemed like a great utility as I attempted to plot some of my data, I very quickly became disenchanted.

In your code, you define a bunch of default settings. But what is the point of this if they are not used? Basically, in order to produce a plot you have to specify ten input arguments every time this function is called.

19 Jul 2012 Leila

Wonderful code, it helped me alot too. Thanks.

31 Mar 2011 Brian Katz

Please see the different help examples, as well as the general use of MatLab's boxplot, which help clarify the syntax (based on the older original boxplot MatLab syntax). There is also a legend example to help users with this point. If you still have questions, please feel free to post them here.

01 Apr 2009 Ged Ridgway

Requires Statistics toolbox for prctile function.

03 Jul 2008 F Werner

Poorly documented & hard to use

13 Apr 2008 Gracee Agrawal

This program greatly helped me. Thanks a lot! Indeed help section should be improved. Also since it allows for subgroup plotting, there should be an option for adding legend to the plot.

10 Aug 2007 Hans van Dijk

Indeed the help could be inproved but for the rest it works nice.

12 Apr 2007 K. Seiler

This program was a great help for me! Thank you very much! If you want to use it, just save the files in your working directory and use examples from the program to understand how it works.

13 Jun 2006 Andreas Handel

'help boxplotC' gave information that was confusing. Couldn't understand it, therefore didn't try further. File might benefit from a more detailed explanation.

Updates
03 Mar 2009

Revised description only.

11 Jun 2010

Rev.2010 includes modification of box widths and control of overlap. Help modified to highlight these features.

31 Mar 2011

March 2011 revision includes the addition of mean symbol and variable widths.

21 Sep 2011

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.

31 Aug 2012

Revised help to be more readable.
Corrected bug when using RGB color definitions.

Contact us