...

/

Plotting Multiple Pairwise Relations

Plotting Multiple Pairwise Relations

Learn to use the seaborn pair grid to visualize pairwise relationships between variables.

The PairGrid class

Seaborn’s PairGrid class allows us to draw a grid of small multiple plots. Different variables are assigned to each row and column of the PairGrid, which allows us to visualize pairwise relationships between multiple variables.

Both the FacetGrid and PairGrid classes from seaborn allow us to draw multiple subplots. However, the key difference between them is that the FacetGrid class plots the one variable for different levels of another categorical variable. Here, each facet represents the identical relationship for the same variable that varies in one of the facet dimensions (col, row, ...