STAT 80B Week 2 - Thursday
10 Mar 2026


Same data. Different colors. Which is easier to read?
Bad color choices can:
Good news: There are simple rules to follow!
Learn three types of color scales:
Plus: How to make sure colorblind people can see your work!
The Job: Tell Things Apart
Scenario: You’re showing favorite pets in a survey.
You need colors that are obviously different from each other.
Good examples: Red, blue, green, orange
Bad examples: Light blue, medium blue, dark blue (that’s ordering!)
ColorBrewer2.org has tested palettes!
ColorBrewer qualitative palettes
The top section shows qualitative palettes (all equal, all different).
You’re making a map of U.S. states colored by region: - West - Midwest
- South - Northeast
Which color combination would you choose?
A. Light green, medium green, dark green, darkest green
B. Red, blue, yellow, purple
C. Red, light red, orange, light orange
Discuss: Which follows the “no implied order” rule? Why are the others problematic?
Remember: Use contrasting colors for categories, not shades of the same color!
When Numbers Have Direction
Some data naturally goes from low to high:
Now you WANT colors that show order: light → dark
Light to dark = low to high
Light colors = low values
Light yellow = few people
Dark colors = high values
Dark blue = many people
Your brain instinctively reads this: “More color = more stuff”
Single hue:
Light blue → Dark blue
Multi-hue:
Yellow → Orange → Red
or
Purple → Blue → Green → Yellow
All of these work great for showing quantities that go from low to high.
You’re mapping average income by county.
Option A: Rainbow colors (red, orange, yellow, green, blue, purple)
Option B: Light yellow → dark blue
Option C: Red, green, blue, purple (random distinct colors)
Discuss: Which option clearly shows “low income to high income”? What’s wrong with the rainbow?
Golden rule: If your data has order, your colors should too!
Stretch, check your phone, grab water!
When There’s a Meaningful Middle
Some data has a critical center point:
You need colors that show TWO directions from the middle.
Light in the middle, dark at both ends, different colors for each direction.
Dark Blue ← Light Blue ← WHITE → Light Red → Dark Red
(very cold) (cold) (neutral) (hot) (very hot)
The pattern: Two sequential scales stuck together at a shared middle!
Perfect for:
Key question: Is there a meaningful zero/middle point? If yes → diverging scale!
From ColorBrewer:
You’re showing election results: Percent voting for Candidate A.
Which color scale?
A. Light gray → dark gray (sequential)
B. Red ↔︎ white ↔︎ Blue (diverging)
C. Red, blue, green, yellow (qualitative)
Discuss: Why does the 50% midpoint matter here?
The white middle makes 50-50 splits obvious!
The Reality
About 8% of men (1 in 12) have colorblindness.
In a class of 30 students, ~2 can’t see certain color combinations!
Most common: Red-green colorblindness (can’t easily distinguish red from green)
What you see: - Red vs. Green = obvious
What they see: - Both look brownish/yellowish - Maybe can’t tell them apart at all
Never use these combinations:
Better alternatives:
Colorblind-safe by design:
Don’t rely on color alone! Add a second cue:
Example: In a line graph with 3 groups, use color AND different line types.
Real hands-on practice:
Work in pairs. We’ll share answers together afterward!
Map showing: Average rainfall by state (ranges from 5 inches to 60 inches per year)
Your tasks:
Chart showing: Change in employment from 2023 to 2024 by industry
Your tasks:
Scenario 1 - Rainfall:
Scenario 2 - Employment Change:
Before choosing colors, ask yourself:
Answer these → you’ll pick the right scale every time!
We’ll practice in code:
Due next Tuesday: Concept Map #1
Connect these ideas:
Hand-drawn, 1 page. See Canvas for details!
I’ll be here if you need me!
![]()
STAT 7 – Winter 2026