What are heatmaps and what is a good way to use one?

Heatmaps visualize data through variations in coloring. Heatmaps are self-explanatory and are a great way to show to a general view of data.

Heatmap Framework

Heatmap-Framework

Heatmaps consist of multivariate data plotted in rows and columns in a matrix-like fashion. Cell AE, for instance, is based on the relationship between cells A and E.

When to use heat maps?

Heatmaps are useful for:

  1. Showing multivariate data
  2. Showing variance across multiple variables
  3. Revealing patterns in data
  4. Showing changes in time
  5. Showing a generalized view of data

What to keep in mind when using heatmaps?

There are a few points to keep in mind when using heat maps.

  1. Heatmaps require legends alongside. Since heatmaps rely on color to show data, they cannot be read without a legend.
  2. Heatmaps are better suited to show generalized information rather than accurate values. This is because it is hard for us to accurately differentiate between colors.
  3. Heatmaps can show categorical as well as quantitative data.
    1. Categorical data is color coded. For example, a heat map can show bad, average, good in 3 different colors.
    2. Quantitative data is usually shown using a gradient scale of colors. This is because we don’t perceive a rainbow of color hues quantitatively. For instance, which is greater – orange, blue, green, red or black?
  4. 2 types of color scales work well with heatmaps:
    1. Sequential scale: A single hue is expressed as a gradient that varies from light to dark with lighter hues representing lower values and darker hues representing higher values.
    2. Diverging scale: This scale uses 2 hues. Each hue is represented as a range of intensity from light to dark.

What are some good ways to use heatmaps?

Let’s see 3 uses for heatmaps with examples.

Show a generalized view with bins for accuracy

Google Analytics uses heat maps to show the number of visitors by the time of the day and day of the week. Notice how they use 4 shades of blue to represent intensity. The scale is not a continuous gradient that blends from one color to another. Instead, it is divided into 4 bins. This can be useful to bring in some accuracy to the visualization.

Google-Analytics-Heatmap
Chart Source: Google Analytics

Show general patterns in data

The next example is from The Daily Viz. This is a representation of the U.S. average daily births by day of the month. They have chosen sequential pink color scale. The visual is very effective because we can immediately spot the popular birthdays. This is a good example of showing general patterns in data.

Heatmap-General-Patterns
Chart Source: The Daily Viz

Show trend over time

The third example is a WSJ graphic. This uses a diverging scale with blues representing the lower numbers and reds representing the higher numbers. We can see how impactful this graph is. There is a stark difference in the count of measles reported before and after the vaccine was introduced. Though we can’t see the individual numbers, this graph does a great job in showing the trend over time.

Heatmap-impact-of-event
Chart Source: WSJ Graphics

Do you like to use heatmaps? How have you used them? Let me know in the comments below.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.