Illustration of a desktop monitor displaying a mosaic plot with unequal-width columns and blue and orange tiles.

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

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 MethodPurchasedDid Not PurchaseTotal
Online404080
In Store15520
Total5545100

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 MethodPurchase OutcomeMembersNonmembersTotal
OnlinePurchased301040
OnlineDid Not Purchase103040
In StorePurchased12315
In StoreDid Not Purchase055
TotalAll outcomes5248100

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.