UpSet plotOverlaps of many groups.
A column for every combination of groups, biggest first. Dots underneath say which groups each column is.
- Answers What do groups share?
- Your data a count for each combination of groups
- Groups 3 to about 20
- Combinations the 5 to 40 biggest
- Excel and Power BI Python or R
What is an UpSet plot?
An UpSet plot shows how many groups overlap without circles. Each combination of groups (only coffee; coffee and cake; coffee, tea and cake) gets a column, as tall as how many people are in exactly that combination, and the columns are sorted by size. Under each column, a grid of dots shows which groups it is: a filled dot for each group in it, joined by a line. Beside the group names, a small bar shows each group's total.
The café now tracks four things: coffee, tea, cake and juice. Coffee alone is the biggest combination; coffee with cake comes second, ahead of tea alone.
Why use an UpSet plot?
Because circles stop working after three groups.
- Any number of groups. Four, ten or twenty, one row each.
- Sorted. The biggest overlap is the first column.
- Exact. Column heights compare like any bar chart.
- Nothing hidden. Small and empty combinations do not distort the rest.
How does an UpSet plot work?
Four steps turn combinations into columns and dots.
- Step 1 of 4A row per groupCoffee, tea, cake and juice, one row each.
- Step 2 of 4A column per combinationAs tall as how many bought exactly that, biggest first.
- Step 3 of 4Dots name the groupsA filled dot in each group's row, joined by a line: this column is coffee and cake.
- Step 4 of 4Totals beside the namesEach group's total as a small bar: coffee 212, the biggest.
What are the parts of an UpSet plot?
Four parts, and each one has a job.
- Columnhow many are in exactly this combination
- One dota combination of one group only
- Joined dotsthe groups in a combination
- Group totaleveryone in the group, in any combination
How do you read an UpSet plot?
Three looks, in this order.
- Read the first columnsCoffee alone (120) and coffee with cake (45) lead.
- Find a group's combinationsJuice is mostly bought with coffee: 29 of 35.
- Look at the long linesThree things at once is rare: 12 customers in all.
What kinds of UpSet plot are there?
The same week, three ways.
- Kind 1Sorted by sizeBiggest combination first.
- Kind 2One combination litThe others fade, for one story.
- Kind 3As a Venn diagramOnly three circles fit: juice is left out.
- Coffee 212
- Cake 84
- Tea 70
UpSet plots can also sort by the number of groups in a combination (singles first, then pairs), and can add a box plot or another chart under each column, such as the average spend of each combination.
When should you use an UpSet plot?
When there are many groups, or the overlaps must be compared exactly.
- there are 4 groups or more
- overlaps must be ranked or compared exactly
- many combinations are small or empty
- the audience reads bar charts
- there are 2 or 3 groups and a wide audience (a Venn diagram)
- sizes and missing overlaps are the story (an Euler diagram)
- only group totals matter (a bar chart)
UpSet plot or Venn diagram?
Columns for many groups, circles for a few.
- Coffee 212
- Cake 84
- Tea 70
The Venn diagram has room for three circles, so juice, the fourth group, falls out of the picture. The UpSet plot gives juice its own row and every combination its column, ranked by size.
How do you make an UpSet plot?
Python or R, or a bar chart and a grid by hand.
In Python, the upsetplot package draws it from yes or no columns per group; in R, UpSetR or ComplexUpset. Both run in Power BI's Python and R visuals. By hand: count each combination (one text key like "Coffee & Cake" per customer, then a count per key), draw a bar chart sorted by size, and add a grid of dots under it.
What goes wrong with UpSet plots?
The most common mistake, and its fix: too many combinations.
- ten groups make over a thousand combinations
- columns turn into a thin fence
| Mistake | Why it hurts | Fix |
|---|---|---|
| Every combination shown | A fence of tiny columns | The biggest ones, the rest as a note |
| Columns not sorted | The biggest overlap hides | Sort by size |
| No group totals | Group sizes are lost | Small bars beside the names |
| Columns read as group totals | Each column is exact combinations | Say "exactly these groups" |
| Readers new to it | The dot grid puzzles them | One sentence on how to read it |
Every chart for “What do groups share?”
Read on, step by step.
Does it fit your data? Try it.
Paste your table into Chart Compass, say what the chart should show, and see the charts that fit, drawn with your own numbers. It runs in your browser, so the data stays with you.