StatisticalPlots`
StatisticalPlots`

BoxWhiskerPlot

As of Version 8.0, BoxWhiskerPlot has been renamed to BoxWhiskerChart and is part of the built-in Wolfram Language kernel.

BoxWhiskerPlot[data]

creates a boxandwhisker plot of the given vector of data.

BoxWhiskerPlot[data1,data2,]

creates multiple boxandwhisker plots.

BoxWhiskerPlot[matrix]

also creates multiple boxandwhisker plots, with each column of the matrix used for a separate box.

Details and Options

Examples

open allclose all

Basic Examples  (1)

A box-and-whisker plot for a standard normal sample:

A box-and-whisker plot for a normal sample and a uniform sample:

Options  (9)

BoxExtraSpacing  (1)

A default box-and-whisker plot for two datasets:

Add an additional box width between the plots:

BoxLabels  (1)

Give explicit labels for plots:

BoxLineStyle  (1)

Use dashed rather than solid lines in the plot:

BoxMedianStyle  (1)

Display the median line as a dashed line:

BoxOrientation  (1)

Orient the graphic horizontally:

BoxOutliers  (1)

Mark near and far outliers identically:

Use triangles for near outliers and squares for far outliers:

BoxOutlierMarkers  (1)

Use triangles for near outliers and squares for far outliers:

BoxQuantile  (1)

The default covers the middle 50% of the data:

Cover the middle 90%:

BoxFillingStyle  (1)

Use a light gray to shade the box:

Wolfram Research (2007), BoxWhiskerPlot, Wolfram Language function, https://reference.wolfram.com/language/StatisticalPlots/ref/BoxWhiskerPlot.html.

Text

Wolfram Research (2007), BoxWhiskerPlot, Wolfram Language function, https://reference.wolfram.com/language/StatisticalPlots/ref/BoxWhiskerPlot.html.

CMS

Wolfram Language. 2007. "BoxWhiskerPlot." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/StatisticalPlots/ref/BoxWhiskerPlot.html.

APA

Wolfram Language. (2007). BoxWhiskerPlot. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/StatisticalPlots/ref/BoxWhiskerPlot.html

BibTeX

@misc{reference.wolfram_2024_boxwhiskerplot, author="Wolfram Research", title="{BoxWhiskerPlot}", year="2007", howpublished="\url{https://reference.wolfram.com/language/StatisticalPlots/ref/BoxWhiskerPlot.html}", note=[Accessed: 21-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_boxwhiskerplot, organization={Wolfram Research}, title={BoxWhiskerPlot}, year={2007}, url={https://reference.wolfram.com/language/StatisticalPlots/ref/BoxWhiskerPlot.html}, note=[Accessed: 21-December-2024 ]}