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

Parameters

Description

Options

Examples

Calling Sequence

BoxPlot(X, options, plotoptions)

BoxPlot['interactive'](X)

Parameters

X

-

data

options

-

(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

plotoptions

-

options to be passed to the plots[display] command

Description

• 

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.

Options

  

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.

• 

deciles=truefalse

  

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.

• 

distance=nonnegative

  

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

• 

mean=truefalse

  

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

• 

notched=truefalse

  

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

• 

offset=realcons

  

Initial offset along the x-axis.

• 

orientation=horizontal, or vertical

  

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

• 

outliers=truefalse

  

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.

• 

width=realcons

  

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

Examples

withStatistics:

AseqSampleNormallni,3,100,i=1..20:

BoxPlotA,title=Box Plot,deciles=false

The commands to create the plot from the Plotting Guide are

AseqSampleNormallni,3,10,i=1..3:

BoxPlotA,color=Niagara Green,deciles=false

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

MMatrixA,scan=columns%T

M3.108771288059343.891289586789252.487074378818821.317521525462820.9076280200506684.142687793813713.144802048503431.126747429653540.5287069558264174.100447609512690.4952868285115372.077147926839570.3221933364459200.4766715332186430.1518875650335261.098034355335702.067737009030370.6660565181762960.03867254310534591.716085477053520.2720112080700691.825854865738204.990076224231906.069756797385090.02322277880634400.6499728653898133.357140515013232.310148356608531.207649504264421.51175492033557

(1)

Plot options such as background color are passed to the plots:-display command:

BoxPlotM,color=Niagara Green,deciles=false,background=LightGrey

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