A mosaic plot, Marimekko chart, Mekko chart, or sometimes percent stacked bar plot, is a graphical visualization of data from two or more qualitative variables. [1] It is the multidimensional extension of spineplots, which graphically display the same information for only one variable. [2] Although the term spineplot was originally used by Hummel [3] to describe univariate graphs, Cox points out that the term has also been broadly applied to displays of two or more variables. [4]
The mosaic plot makes it possible to visualise relationships between different categorical variables. For example, independence is shown when the boxes across categories all have the same areas. [5] Mosaic plots were introduced by Hartigan and Kleiner in 1981 and expanded on by Friendly in 1994. [6] [7] Mosaic plots are also called Marimekko or Mekko charts because they resemble some Marimekko prints. [8] [9]
As with bar charts and spineplots, the area of the tiles, also known as the bin size, is proportional to the number of observations within that category. [10] Although mosaic plots most commonly show the relative frequency of each combination of values, they can also be used to display the goodness with which a loglinear model fits the data.
An example of mosaic plots uses data from the passengers on the Titanic . There are 2201 observations and 3 variables. The variables are:
| Gender | Survived | 1st Class | 2nd Class | 3rd Class | Crew |
|---|---|---|---|---|---|
| Male | No | 118 | 154 | 422 | 670 |
| Yes | 62 | 25 | 88 | 192 | |
| Female | No | 4 | 13 | 106 | 3 |
| Yes | 141 | 93 | 90 | 20 |
| Order | Variable | Axis |
|---|---|---|
| 1. | Gender | Vertical |
| 2. | Class | Horizontal |
| 3. | Survived | Vertical |
The categorical variables are first put in order. Then, each variable is assigned to an axis. In the table to the right, sequence and classification is presented for this data set. Another ordering will result in a different mosaic plot, i.e., the order of the variables is significant as for all multivariate plots.
At the left edge of the first variable we first plot "Gender," meaning that we divide the data vertically in two blocks: the bottom blocks corresponds to females, while the upper (much larger) one to males. One immediately sees that roughly a quarter of the passengers were female and the remaining three quarters male.
One then applies the second variable "Class" to the top edge. The four vertical columns therefore mark the four values of that variable (1st, 2nd, 3rd, and crew). These columns are of variable thickness, because column width indicates the relative proportion of the corresponding value on the population. Crew plainly represents the largest male group, whereas third-class passengers are the largest female group. The number of female crew members is also seen to have been marginal.
The last variable ("Survived") is finally applied, this time along the left edge with the result highlighted by shade: dark grey rectangles represent people that did not survive the disaster, light grey ones people that did. Women in the first class are immediately seen to have had the highest survival probability. The survival probability for females is seen to have been higher than that for men (marginalised over all classes). Similarly, a marginalization over gender identifies first-class passengers as most probable to survive. Overall, about 1/3 of all people survived (proportion of light gray areas).
Jayden
The mosaic plot has been criticised for making the data hard to perceive and to compare visually, because the values correspond to areas. [11] [9]