Skip to content

boxplot

Box-and-whisker plot.

boxplot(x)
boxplot(x, g, ...)

Renders a box-and-whisker plot of x. The box shows the inter-quartile range (Q1 to Q3) with a line at the median; whiskers extend to non-outlier extremes; outliers are shown as individual points. With grouping vector g, draws one box per group.

boxplot(randn(100, 4)) % 4 boxes
boxplot(measurements, group_labels)
  • violinplot — Violin plot — box plot with a kernel-density-estimate envelope.
  • histogram — Histogram of data.