In this case, I've selected the one gram value
for greater than one gram value for
high protein and greater than three grams for high sugar.
If we'd like to, we can go back to
our data source pane and see the results of our new calculated column.
As you can see, there are many cereals that are both high in protein and high in sugar.
In this case, if
you have a different threshold for what constitutes high or low protein or sugar,
you can modify these calculated fields to suit your needs.
Next, we'll take these calculated fields that we just created and move those to
the columns bar and then we'll move the number of
records which is what we're counting up in our mosaic plot to the rows field.
This automatically gives us a bar chart,
but what we really want is called a tree map by Tableau.
Here, you can see the result of our mosaic plot.
In these thresholds, many cereals 41 have a high protein and high sugar,
but very few cereals only two have both low sugar and low protein.