Solved – How to visualize counts of different categories

categorical datadata visualization

Suppose we have $10$ boxes and we are interested in measuring the number of apples, oranges and pears in each. What is a good way to visualize how the boxes relate to each other in terms of the distribution of fruits? For example, box 1 might have 5 apples, 10 oranges, and 6 pears while box 10 might have 1 apple, 1 orange and 1 pear.

Added. Is looking at a distance matrix appropriate? Is there a way to visualize a distance matrix?

Best Answer

What about a spineplot? That way you can simultaneously display both the differences in proportions per box and differences in the size of the boxes. Your example with two boxes would look like this:

enter image description here

Related Question