FUNCTION REFERENCE

boxplot

Box plot of data columns or groups.

Box plot of data columns or groups.

Syntax

boxplot(x)

Syntax

boxplot(x, g)

Syntax

h = boxplot(x, 'Labels', labels, 'Whisker', w)

Each column of a matrix, or each group of g (numbers, text or categorical), gets one box at x = 1, 2, ...: the box spans the 25th to 75th percentiles (prctile midpoint rule), a red line marks the median, dashed whiskers reach the most extreme points within w (default 1.5) interquartile ranges, and red + marks the outliers beyond them. h is 7-by-k: upper and lower whisker, upper and lower adjacent value, box, median, outliers.

Example

h = boxplot([1 2 3 4 5 6 7 8 9 30]');   % 30 is an outlier

Differences from MATLAB: Group labels are not drawn as tick labels yet; notches, 'PlotStyle', 'Orientation' and other options are not supported yet.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.