DataViz - 1e - Ch04 - PowerPoint 2
DataViz - 1e - Ch04 - PowerPoint 2
1e
Camm, Cochran, Fry & Ohlmann, Data Visualization - Exploring and Explaining with Data, 1st Edition. © 2021
Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
Chapter Objectives (1 of 2)
Camm, Cochran, Fry & Ohlmann, Data Visualization - Exploring and Explaining with Data, 1st Edition. © 2021
Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
Chapter Objectives (2 of 2)
LO 4.3 Design color schemes that are appropriate for categorical data,
ordered data, and quantitative data with meaningful reference
values
LO 4.4 Define colors in data visualization software using the hue,
saturation, luminance (HSL) system
LO 4.5 Create data visualizations using colors that are easier for the
audience to interpret
LO 4.6 List common mistakes made when using color in data
visualizations and how to avoid them
Camm, Cochran, Fry & Ohlmann, Data Visualization - Exploring and Explaining with Data, 1st Edition. © 2021
Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
Data Visualization Makeover
Versions of cover art for Ted Williams’s The Science of Hitting
Camm, Cochran, Fry & Ohlmann, Data Visualization - Exploring and Explaining with Data, 1st Edition. © 2021
Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
Color
Color is the property of an object that results from how the object reflects or
emits light.
Camm, Cochran, Fry & Ohlmann, Data Visualization - Exploring and Explaining with Data, 1st Edition. © 2021
Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
4.1 Attributes of Color: Hue
The RGB primary color model and color wheel
Hue is the base of color. The primary hues (red, green, and blue) form the color model. The primary
hues cannot be mixed or formed by any combination of other hues.
Combinations of primary hues create secondary and tertiary colors, as displayed in the color wheel.
Camm, Cochran, Fry & Ohlmann, Data Visualization - Exploring and Explaining with Data, 1st Edition. © 2021
Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
4.1 Attributes of Color: Saturation
Primary hues in the RGB primary color model at different levels of saturation
Saturation is the attribute of a color representing the amount of gray present. It determines the hue’s
intensity or purity. A pure hue has no grayness and is 100% saturated.
Camm, Cochran, Fry & Ohlmann, Data Visualization - Exploring and Explaining with Data, 1st Edition. © 2021
Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
4.1 Attributes of Color: Luminance
Primary hues in the RGB primary color model at different levels of
luminance
Luminance measures the relative degree of black or white within a color – the brightness of a color.
Adding white to a hue creates a brighter color and adding black to a hue creates a darker color.
Camm, Cochran, Fry & Ohlmann, Data Visualization - Exploring and Explaining with Data, 1st Edition. © 2021
Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
4.1 Color Psychology and Color Symbolism
Color psychology: the study of the innate relationships between color and
human behavior.
We perceive Cool hues (purple, blue, and green) as soothing,
calming, and reassuring.
Warm hues (yellow, orange, and red) evoke energy, passion, and
danger.
Color symbolism refers to the cultural meanings and significance associated
with color.
Color symbolism differs much more across cultures than color
psychology does and can change over time.
Camm, Cochran, Fry & Ohlmann, Data Visualization - Exploring and Explaining with Data, 1st Edition. © 2021
Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
4.1 Perceived Color
Traits frequently associated with various colors
Camm, Cochran, Fry & Ohlmann, Data Visualization - Exploring and Explaining with Data, 1st Edition. © 2021
Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
4.1 Perceived Color and Background
Perceived color changes as contrast with the background color changes
Camm, Cochran, Fry & Ohlmann, Data Visualization - Exploring and Explaining with Data, 1st Edition. © 2021
Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
4.1 Complementary and Analogous Colors
Complementary colors are directly opposite each other on the color wheel.
• Create dissonance
• Useful to make objects in a display stand out
Camm, Cochran, Fry & Ohlmann, Data Visualization - Exploring and Explaining with Data, 1st Edition. © 2021
Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
4.1 Suggestions for the Use of Color in Data Visualization
• Poor and unnecessary use of color creates clutter and increases the
audience’s cognitive load.
• A multicolored background for data visualization can be distracting.
• Cool colors appear more distant than warm colors.
• Complementary colors used together create color dissonance.
• Analogous colors create more color harmony than complementary colors.
Camm, Cochran, Fry & Ohlmann, Data Visualization - Exploring and Explaining with Data, 1st Edition. © 2021
Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
4.2 Color Scheme
The color scheme depends on the type of data used in the data
visualization and the message we want to convey to the audience.
Camm, Cochran, Fry & Ohlmann, Data Visualization - Exploring and Explaining with Data, 1st Edition. © 2021
Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
4.2 Categorical Color Schemes
Camm, Cochran, Fry & Ohlmann, Data Visualization - Exploring and Explaining with Data, 1st Edition. © 2021
Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
4.2 Sequential Color Schemes
Camm, Cochran, Fry & Ohlmann, Data Visualization - Exploring and Explaining with Data, 1st Edition. © 2021
Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
4.2 Sequential Color Schemes for Maps
Camm, Cochran, Fry & Ohlmann, Data Visualization - Exploring and Explaining with Data, 1st Edition. © 2021
Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
4.2 Diverging Color Schemes
Heat map of monthly mean daily low temperature for Indianapolis 2010–2019
In a diverging color scheme, a gradient formed by two sequential color schemes sharing a common
endpoint represents a quantitative variable.
Each sequential color scheme, one for values above the reference value and the other one below, uses a
different hue with a gradient of increasing luminance as the values approach the reference value.
*See the notes for step-by-step instructions on how to build a heat map with a diverging color scheme.
Camm, Cochran, Fry & Ohlmann, Data Visualization - Exploring and Explaining with Data, 1st Edition. © 2021
Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
4.3 The HSL Color System
We can control the hue, saturation, and luminance (HSL) in Excel through the Colors dialog
box as 0 to 255 integers.
Hue: the primary and secondary colors of the RGB primary color mode using fixed values for
100% saturation (Sat: 255) and 50% luminance (Lum: 128) are:
Color Hue
Red 0
Yellow 40
Green 80
Cyan 120
Blue 160
Magenta 200
Sat: a higher saturation represents a purer color. A Sat value of 0 results in a gray tone.
Lum: a luminance of 255 results in the color white. A Lum value of 0 produces the color black.
Camm, Cochran, Fry & Ohlmann, Data Visualization - Exploring and Explaining with Data, 1st Edition. © 2021
Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
4.3 Setting the Hue Parameter in the Colors Dialog Box
Camm, Cochran, Fry & Ohlmann, Data Visualization - Exploring and Explaining with Data, 1st Edition. © 2021
Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
4.3 Setting the Sat Parameter in the Colors Dialog Box
Camm, Cochran, Fry & Ohlmann, Data Visualization - Exploring and Explaining with Data, 1st Edition. © 2021
Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
4.3 Setting the Lum Parameter in the Colors Dialog Box
Camm, Cochran, Fry & Ohlmann, Data Visualization - Exploring and Explaining with Data, 1st Edition. © 2021
Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
4.3 Replicate a Color Using the Eyedropper Tool
Hue, Sat, and Lum settings used in the
Grappenhall Publishers logo Grappenhall Publishers logo
Camm, Cochran, Fry & Ohlmann, Data Visualization - Exploring and Explaining with Data, 1st Edition. © 2021
Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
4.3 Custom Color Using the RGB Color System
Step 1. Access the RGB Color System by selecting RGB from the Color
model: dropdown menu in the Colors dialog box. Then, select
the Standard tab in the Colors dialog box.
Step 2. Click on a particular hexagon to invoke the desired color. The
new color will appear on the New-Current box in the lower
right of the dialog box.
Click OK to change the object to the new color.
The Transparency slider controls how much you see-through in a color.
Step 3. Drag the Transparency slider or enter a number between 0 and
100 to vary the percentage of transparency from 0 (fully
opaque, the default setting) to 100% (fully transparent).
Camm, Cochran, Fry & Ohlmann, Data Visualization - Exploring and Explaining with Data, 1st Edition. © 2021
Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
4.4 Unnecessary Color
Use of hue and a legend to identify Use of horizontal axis labels to identify
categories categories
• The horizontal axis label replaces the legend with category names.
• A single color replaces the colorful palette.
• The audience can now follow the chart from left to right with a reduced cognitive load.
Camm, Cochran, Fry & Ohlmann, Data Visualization - Exploring and Explaining with Data, 1st Edition. © 2021
Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
4.4 Excessive Color
Line chart of the quarterly house price index by state with too many colors
Camm, Cochran, Fry & Ohlmann, Data Visualization - Exploring and Explaining with Data, 1st Edition. © 2021
Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
4.4 Reducing Excessive Color
Chart of quarterly house price index by state with more efficient use of color
We can make it easier for the audience to find
the westernmost states in the continental
United States by:
• Applying a different color for each of these
states and using gray for all other states.
• Removing the legend and adding a label for
each of the five westernmost states in the
continental United States to the end of their
respective lines.
*See step-by-step instructions on how to
produce the chart to the left in the notes.
Camm, Cochran, Fry & Ohlmann, Data Visualization - Exploring and Explaining with Data, 1st Edition. © 2021
Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
4.4 Insufficient Contrast
Lack of contrast makes it more challenging Increased contrast makes it easier to
to differentiate between the pie chart slices differentiate between the pie chart slices
The increase in luminance difference increases the contrast between the two slices of each pie chart,
making it easier for the audience to focus on the NHS portion of the budget.
Camm, Cochran, Fry & Ohlmann, Data Visualization - Exploring and Explaining with Data, 1st Edition. © 2021
Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
4.4 Inconsistency Across Charts
A stacked column chart of children and A line chart of ticket revenue for December
adult zoo attendance for the last year across several years
The consistent use of colors, orange and blue for adults and children, helps the audience comprehend the
data presented across a series of related slides.
Camm, Cochran, Fry & Ohlmann, Data Visualization - Exploring and Explaining with Data, 1st Edition. © 2021
Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
4.4 Neglecting Colorblindness
Heat map of monthly mean daily low Heat map as It may appear to someone
temperature for Indianapolis 2010–2011 who is red-green colorblind
Colorblindness, or a reduced ability to accurately perceive some colors, occurs when at least one of the
three types of cones in a retina is insensitive to the wavelength of light responsible for sensing.
The most common form of colorblindness is red-green colorblindness.
*See additional comments in the notes.
Camm, Cochran, Fry & Ohlmann, Data Visualization - Exploring and Explaining with Data, 1st Edition. © 2021
Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
4.4 Neglecting Mode of Delivery
Camm, Cochran, Fry & Ohlmann, Data Visualization - Exploring and Explaining with Data, 1st Edition. © 2021
Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
Discussion Activity
• Consider the choropleth maps of average annual temperature by state shown in slide 17.
We learned how to indicate the gradient of a quantitative variable, such as temperature,
using different levels of luminance for the same hue, and how we can play on the
psychology of color to convey coolness (blue) vs. warmth (brown) in the audience.
• Suppose you need to create a choropleth map of median family income by state (data
not available.) What color scheme would you choose to convey the message to the
audience and why? Define the color scheme, hue, and luminance selected for this case..
• What if you instead need to create a choropleth map of changes in median family
income by state (data not available) over the past decade (such as 2010 vs. 2020.)
What color scheme would you choose to convey the message to the audience and why?
Define color scheme, hues, and luminance selected for this case.
Camm, Cochran, Fry & Ohlmann, Data Visualization - Exploring and Explaining with Data, 1st Edition. © 2021
Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
Check Your Knowledge
1. When the groups of the categorical variable have no inherent ascending or descending
order, the variable is well suited for representation by __________.
a. a sequential color scheme for each of its unique groups
b. a distinct color for each of its unique groups
c. analogous colors for each of its unique groups
d. warm hues for each of its unique groups
Camm, Cochran, Fry & Ohlmann, Data Visualization - Exploring and Explaining with Data, 1st Edition. © 2021
Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.
Summary
Camm, Cochran, Fry & Ohlmann, Data Visualization - Exploring and Explaining with Data, 1st Edition. © 2021
Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible
website, in whole or in part.