Heat Map — Definition & Example
A heat map is a chart that shows numbers as colors, so you can spot high and low values at a glance. Darker or "hotter" colors usually mean larger values.
A heat map is a display in which each cell of a two-dimensional grid, or each location on a map, is shaded according to a color scale. The scale is a rule that assigns each data value, or each interval of values, to one color. A legend states that rule. A matrix heat map has a categorical or numerical variable on each axis. A geographic or density heat map shades positions in space by how often events occur there.
Worked Example
Problem: A coffee shop counts customers in three time blocks over three days. Monday: 40 (morning), 25 (afternoon), 10 (evening). Tuesday: 35, 30, 15. Wednesday: 50, 20, 10. Build a heat map with 4 equal-width color bins and describe the pattern.
Step 1: Find the smallest and largest counts, 10 and 50. Divide the range into 4 equal bins.
Step 2: Set the legend: 10 to under 20 is pale yellow, 20 to under 30 is orange, 30 to under 40 is red, and 40 to 50 is dark red. Shade each cell of the grid by its bin. For example, 30 is red and 40 is dark red.
Step 3: Read the colors. The morning column is all red or dark red, and the evening column is all pale yellow. The column totals confirm what the colors show.
Answer: Mornings are the busiest time (125 customers in total), and evenings are the slowest (35). Wednesday morning, at 50 customers, is the hottest cell.
Why It Matters
In data science, analysts use heat maps of correlation matrices to see which pairs of variables move together. Meteorologists shade maps by temperature in degrees Fahrenheit. Sports analysts shade a basketball court by shooting percentage to find a player's strongest spots.
Common Mistakes
Mistake: Reading an exact number from a cell's color.
Correction: A color usually stands for a range of values, not one value. In the example, 30 and 35 are both red. Check the legend, and use the underlying table when you need exact values.
