Pair Plot / Scatter Matrix
Variant: Standard
Made-up data, for demonstration only
Variants
3 types · click one to see it in the frame above- Difference from standard
- The recommended type; use it as a starting point
- Use when
- Explore every pair of variables in one dataset
Pair Plot is a grid of scatter plots that pairs every variable with every other. Each cell is a scatter plot of two variables, and the diagonal cells usually show the distribution of one variable. The example shows 80 customers (made-up data) and 3 variables: age, income and spending.
How to read a Pair Plot
- Variable names sit on the diagonal. The diagonal cells are histograms showing the distribution of that one variable.
- Rows are the vertical axis and columns are the horizontal axis. The cell in the second row and first column is income (vertical) against age (horizontal).
- A cell where points climb clearly to the right shows a strong positive relationship. Here age and income have r ≈ 0.73 and income and spending have r ≈ 0.62, while age and spending, at r ≈ 0.39, are more scattered.
- The grid is symmetric. The upper right and lower left cells are the same pair with the axes swapped. Try the "Lower half only" variant.
- Pick an interesting cell and zoom in. Try the "Highlight a variable pair" variant, which highlights age and income. For the detail, use a Scatter Plot.
When to use it
- You have just received a data set with many variables and do not yet know what relates to what. It is one of the first steps of exploration.
- You want to see the raw data for every pair, unlike a correlation matrix, which shows only r.
- You want to spot outliers or curves that r hides. Seeing the raw data beats a summary value.
When not to use it
- There are more than about 10 variables. It becomes very hard to read. Use a Correlation Matrix or a PCA Biplot.
- The readers are a general audience. A grid of small charts is hard for people who are not used to it.
- You want to get one message across. Choose the most important pair and use one scatter plot.
Common mistakes
1. Too many variables
Past about 10 it is hard to read, and the cells get so small you cannot tell the points apart.
2. The scatter plot warnings still apply
Every caution for scatter plots and histograms applies here too, such as overlapping points.
3. Not separating groups
If you have a categorical variable, use colour to split subgroups, because the overall picture can hide different relationships within each group.
4. Reading a relationship as cause and effect
Points that climb mean the variables move together. They do not say what caused it.
5. Mixing variables with different units and not labelling the axes
Put the name and unit of the variable on every row and column.
Compared with similar charts
| Chart | How it differs | Choose it when |
|---|---|---|
| Pair Plot | A grid of scatter plots for every pair | Exploring several variables where each cell is still readable |
| Correlation Matrix | The r value for every pair | Scanning many variables |
| Scatter Plot | One pair | Telling the story of a pair you have chosen |
| Parallel Coordinates | One line per item across several axes | Comparing items on many variables |
Frequently asked questions
Is a Pair Plot different from a Scatter Plot Matrix?
No, they are the same. The name varies by library (seaborn calls it pairplot). Some sources use the name correlogram for this whole group.
What do the diagonal cells show?
Usually the distribution of that variable, as a histogram or a density plot.
Can I add a regression line to every cell?
Yes, for example a linear regression line in every pair.
References
- Fundamentals of Data Visualization, ch. 12: Visualizing associations among two or more quantitative variables · Claus O. Wilke · clauswilke.comUsed to confirm: relationships between variables, correlation and PCA
- Correlogram · Data to Viz · www.data-to-viz.comUsed to confirm: how to read a correlogram and what to watch for
Last updated 28 Nov 2026