create box plots from data - Maple Help

Online Help

All Products    Maple    MapleSim

Home : Support : Online Help : Graphics : Statistics : Statistics/BoxPlot

This page is an exact match for your search term. Click here to search for all help pages containing the term, "BoxPlot"

Statistics[BoxPlot] - create box plots from data

Calling Sequence

BoxPlot(X, options, plotoptions)








(optional) equation(s) of the form option=value where option is one of datasetlabels, color, deciles, distance, mean, notched, offset, orientation, outliers, or width; specify options for generating the box plot



options to be passed to the plots[display] command



The BoxPlot command generates a box plot for the specified data.


The first parameter X is either a single data sample - given as e.g. a Vector - or a list of data samples. Note, that the individual samples may be of variable size.


If the ['interactive'] option is used, then a dialog box appears that allows for customized creation of the plot.



The options argument can contain one or more of the options shown below. All unrecognized options will be passed to the plots[display] command. See plot[options] for details.


datasetlabels=default or list


Data set labels to be added to the individual boxes. By default, datasetlabels will be set to 1, 2, 3, etc.


color=name, list, or range


This option specifies colors for the individual data sets. When a list of colors is given, each of the boxes will be colored with the corresponding color in the list. If a range of colors is given, the colors will be generated by selecting an appropriate number of equally-spaced points in the corresponding hue range.




If this options is set to true then the deciles will be included in the plot. Deciles are represented by points with symbol type set to BOX. The default value is true.




This option can be used to control the distance between the boxes. The default value is 0.25.




If this options is set to true then the mean will be included in the plot. The default value is true.




Draws notches on box-and-whisker plots. The default is false.




Initial offset along the x-axis.


orientation=horizontal, or vertical


Indicate the orientation of the box plots. The default is vertical.




Outliers are points that are farther than 3/2 times the interquartile range away from the upper and lower quartiles. If this option is set to false, then the outlying points will not be included in the plot. In this case, the whiskers will be extended past outliers to the maximum and minimum points.




This option can be used to control the width of the boxes. The default value is 0.75.




BoxPlotA,title=Box Plot,deciles=false

The commands to create the plot from the Plotting Guide are


BoxPlotA,color=Niagara Green,deciles=false

The BoxPlot command also accepts a Matrix. The columns are understood as individual data samples.




BoxPlotM,color=Niagara Green,deciles=false

See Also

Statistics, Statistics[AreaChart], Statistics[LineChart], Statistics[PointPlot], Statistics[Visualization]

Download Help Document

Was this information helpful?

Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam