Mosaic Plot

A mosaic plot is a filled rectangular plot (no white space) with consistent numbers of rows and columns, in which the area of each small rectangle is proportional to the frequency count for a unique combination of levels of the categorical variables displayed.

|400

U.S. adults who closely follow local news|500

You can not read the actual values in a mosaic plot, but you can inspect the association. As we can see from the above example, we can relatively confident in concluding that the older one is, the higher probability of them being a follower.
The steeper the stairs, the stronger the relationship.

More Variables

Mosaic plots are powerful for presenting Multivariate Categorical Data. We can put multiple variables on the x-axis and y-axis. The most important problem is cutting the variables.

As in the above example, we put variables

Mosaic Pairs Plot

Just like Scatterplot Matrix, we can make mosaic plot matrix, with each element being a spine plot with two variables. Then for n variables, we need an n×n matrix. A diagonal elements is a vertical proportion cut of one variable.

Best Practices

Implementation

Simpson's Paradox

Simpson's paradox is a phenomenon in Probability Theory and Statistics in which a trend appears in several groups of data but disappears or reverses when the groups are combined.
An example of Simpson's paradox is A Plausible Treatment Test.
A visual example of Simpson's paradox:

200x200 ==> 200x200

Mosaic plots can help eliminate Simpson's paradox:

Creative Commons License by zcysxy