
Mosaic Plot Tiles: Why Taller Can Still Mean Fewer
A mosaic plot shows relationships between categorical variables by dividing a rectangle into tiles whose areas represent counts. Read group widths before comparing heights: a taller tile can contain fewer observations because it is narrower.
In the shopper example below, the purchase tile with fewer people stands taller. That is the trap. Width tells you how large each shopping group is; height tells you the purchase rate within it.
In This Article
- Connect the Tiles to a Table
- Read Width Before Height
- Compare Patterns Across Groups
- Understand Expected Counts and Shading
- Follow the Nesting With More Variables
- Recognize What the Display Cannot Prove
- Key Takeaways
- Frequently Asked Questions
- Read Width, Height, and Area Together
Connect the Tiles to a Table
Before any cuts, the plot is one blank rectangle representing all 100 shoppers. No part yet belongs to a shopping method or outcome. The contingency table supplies the cuts:
| Shopping Method | Purchased | Did Not Purchase | Total |
|---|---|---|---|
| Online | 40 | 40 | 80 |
| In Store | 15 | 5 | 20 |
| Total | 55 | 45 | 100 |
Cut that rectangle vertically into shopping-method columns, then divide each column by purchase outcome. Each interior table cell becomes a tile. The online-purchase cell occupies 40% of the rectangle’s area, excluding gaps. Mosaic plots keep this count-to-area relationship even when tiles have very different shapes.
Read Width Before Height
The online column takes more of the available width than the in-store column. Within those columns, purchase heights represent the respective purchase rates. Heights show conditional proportions: the share purchasing among shoppers using that method.
The narrower purchase tile is taller. It still contains fewer people. Multiplying width by height resolves the apparent contradiction: the narrower, taller purchase tile occupies less of the full rectangle. Use height for the purchase-rate question and area for the number-of-shoppers question.
Compare Patterns Across Groups
The different purchase heights suggest an association between method and outcome. Under independence, the conditional distributions would match, so the boundaries would align if categories appeared in the same vertical order.
Now put purchase outcome horizontally. The purchased column occupies 55% of the width, and the did-not-purchase column occupies 45%. Within purchased, online shoppers take more of the height than in-store shoppers. Within did-not-purchase, the corresponding shares are 40/45, about 89%, and about 11%.
That flip answers a different question: which shopping methods account for each outcome? The original cells keep their counts and areas, but their shapes change.
Understand Expected Counts and Shading
Independence gives those differences a numerical reference:
Expected count = row total × column total ÷ grand total
A Pearson residual scales the difference by the square root of the expected count:
Pearson residual = (observed − expected) / √expected
Positive residuals mean more observations than expected under independence; negative residuals mean fewer.
Suppose the legend assigns pale blue to positive residuals and orange to negative ones. Pale blue means more shoppers in that cell than expected under independence. It does not necessarily mean more purchases or a high raw count. Online nonpurchases (40 observed versus 36 expected) and in-store purchases (15 versus 11) both have positive residuals. Color conventions vary, so check the legend. Pearson’s chi-square statistic sums the squared Pearson residuals across cells.
Follow the Nesting With More Variables
Extend this illustrative dataset with the following assigned membership counts. Keep the zero-count combination in the table even though its tile has no area:
| Shopping Method | Purchase Outcome | Members | Nonmembers | Total |
|---|---|---|---|---|
| Online | Purchased | 30 | 10 | 40 |
| Online | Did Not Purchase | 10 | 30 | 40 |
| In Store | Purchased | 12 | 3 | 15 |
| In Store | Did Not Purchase | 0 | 5 | 5 |
| Total | All outcomes | 52 | 48 | 100 |
Here, membership is split last and stacked vertically within each outcome tile, so the in-store-purchase tile divides into member and nonmember heights of 12/15 and 3/15. Variable order does not determine split direction: R’s mosaicplot defaults to alternating vertical and horizontal cuts, starting vertically, so membership would divide tile widths with this variable order. The member tile occupies 12% of the whole plot. Its area represents shoppers sharing all three categories.
Whether you encounter the term mosaic graph or mosaic bar graph, follow the subdivision order. Membership first emphasizes comparisons between membership groups; membership last exposes differences inside method-and-outcome combinations.
Recognize What the Display Cannot Prove
The membership extension creates a specific disappearing cell: in-store shoppers who are members and did not purchase. Its count is zero, so it has no visible area. Without the table, you might mistake that absence for a missing membership category. Small positive counts instead produce tiny tiles; category ordering can make comparisons easier without changing counts.
Invisible and tiny cells also matter statistically. Low expected counts can make the usual chi-square approximation unreliable and call for another inferential approach. A striking boundary difference alone does not establish statistical significance.
Key Takeaways
- Match each tile to its table cell before interpreting its shape.
- Separate within-group percentages from shares of the whole dataset.
- Use a flipped layout when your question changes direction.
- Read shading against its stated independence reference.
- Keep zero-count combinations visible in the accompanying table.
Frequently Asked Questions
What is a mosaic plot?
A mosaic plot is an area-based display of counts for combinations of categorical values. Unlike a height-only comparison, its geometry preserves unequal group sizes. Residual shading can additionally identify combinations that depart from the counts expected under independence.
Can you provide an example of a mosaic plot?
The shopper table above produces a four-tile mosaic comparing shopping method with purchase outcome. Its purchase tiles demonstrate why the taller rectangle need not represent the larger count.
What is the difference between a mosaic plot and a segmented bar graph?
A conventional 100% segmented bar graph uses equal-width bars, while a mosaic varies widths to represent group sizes. Choose the segmented graph for a focused percentage comparison; choose the mosaic when the sizes of those groups also matter.
How do I make a mosaic plot in Google Sheets?
Google Sheets has no built-in mosaic chart type. Its 100% stacked column chart can compare conditional percentages, but equal-width columns leave out the group-size information that defines a mosaic.
How do I create a mosaic plot in Excel?
Excel has no standard built-in mosaic chart type. An ordinary stacked column chart does not become a mosaic simply because its segments contain the same counts: the column widths must also encode group totals.
Read Width, Height, and Area Together
First decide which comparison you need: purchase rates within shopping methods, or shopping methods within purchase outcomes. Put the grouping variable across the width, then follow each tile back to its table cell. Choose a mosaic when unequal group sizes are part of the question; use a conventional 100% segmented bar graph when your focus is conditional percentages alone.
For the shopper data, the important distinction is between a higher purchase rate and a larger purchase count. The taller purchase tile has less area. Read height as a proportion within its column, and use area to answer how much of the dataset a tile represents.
Recommended for you
Venn Diagram: Why Club Rosters Can Count Students Twice
A Venn diagram explains how 18 art-club and 14 music-club members fit in a class of 30. Learn to read overlaps and avoid double counting. See how it works.
Decoding Flowchart Symbols: What Each Shape Tells You
Flowchart symbols distinguish actions, decisions, and connections. Learn where rectangles, diamonds, and arrows belong to read workflows clearly. See the guide.
Design Principles for Beautiful and Readable Network Maps
Put 2,000 nodes and 8,000 edges on a canvas and most viewers will see spaghetti. Use layout constraints, color discipline, and geometry tuned to human perception, and clusters, bridges, and outliers become legible in under five seconds—the difference between guesswork and insight. This guide distills Design Principles for Beautiful and Readable Network Maps into practical […]
SEO Infographic: Why the Publishing Page Matters Too
An SEO infographic needs more than an image. Connect your search question, visual, file and publishing page in five steps to make it useful. See the steps.
Mapped: How a Bill Becomes a Law Flowchart—Key Decisions
Use this how a bill becomes a law flowchart to trace committee review, chamber votes and presidential action. See why bills move forward or stop along the way.
Circular Flow Diagram: A $4 Loaf Links Two Markets
A circular flow diagram connects a $4 bread purchase to work and income. Learn how goods and money move through two markets. Follow the example in the article.
15 Venn Diagram Examples: Shared vs. Exclusive Members
Venn diagram examples clarify shared and exclusive members, from fruit baskets to an 80-person pet survey. Avoid double-counting; explore all 15 examples.
Behind an Absolute Value Graph: The Sharp Corner Explained
An absolute value graph has two rays and a sharp vertex. Learn how the equation sets its shape, range, and intercepts, then plot it correctly. See how here.
