
A bagplot is a method in robust statistics for visualizing two- or three-dimensional statistical data, analogous to the one-dimensional box plot. Introduced in 1999 by Rousseeuw et al., the bagplot allows one to visualize the location, spread, skewness, and outliers of a data set.
The bagplot consists of three nested polygons, called the "bag", the "fence", and the "loop".
There is an option to connect the points between the bag and fence to the bag, on a line to the depth median .
The three-dimensional version of the bagplot draws the loop in transparent colors, so the bag remains visible.
The bagplot is equivariant under affine transformations of the plane, and robust against outliers.