The Bagplot: A Bivariate Boxplot

Peter J. Rousseeuw, Ida Ruts, John W. Tukey

The American Statistician · 1999 · 426 citations · 17 references

Concepts

TL;DR

The bagplot is based on half‑space location depth, extending the univariate rank concept to bivariate data. The authors propose the bagplot, a bivariate generalization of the univariate boxplot. The bagplot is constructed by locating the depth median, enclosing the n/2 observations with greatest depth in a bag, expanding this bag by a factor of three to define a fence, marking points between bag and fence in light gray and flagging those beyond as outliers, and software is provided for S‑Plus and MATLAB. The bagplot visualizes location, spread, correlation, skewness, and tails, is equivariant under linear transformations, is not limited to elliptical distributions, and is illustrated on multiple datasets such as a scatterplot matrix.

Abstract

Abstract We propose the bagplot, a bivariate generalization of the univariate boxplot. The key notion is the half space location depth of a point relative to a bivariate dataset, which extends the univariate concept of rank. The "depth median" is the deepest location, and it is surrounded by a "bag" containing the n/2 observations with largest depth. Magnifying the bag by a factor 3 yields the "fence" (which is not plotted). Observations between the bag and the fence are marked by a light gray loop, whereas observations outside the fence are flagged as outliers. The bagplot visualizes the location, spread, correlation, skewness, and tails of the data. It is equivariant for linear transformations, and not limited to elliptical distributions. Software for drawing the bagplot is made available for the S-Plus and MATLAB environments. The bagplot is illustrated on several datasets—for example, in a scatterplot matrix of multivariate data.

References

17