Somewhere over the Rainbow How to Make Effective Use of Colors in Statistical Graphics

Similar documents
Escaping RGBland: Selecting Colors for Statistical Graphics

A Toolbox for Manipulating and Assessing Color Palettes for Statistical Graphics

HCL-Based Color Palettes in R

CSE Data Visualization. Color. Jeffrey Heer University of Washington

Murdoch redux. Colorimetry as Linear Algebra. Math of additive mixing. Approaching color mathematically. RGB colors add as vectors

Understanding Human Color Vision

The theory of data visualisation

The Art and Science of Depiction. Color. Fredo Durand MIT- Lab for Computer Science

Automatic Testing of Color Blindness

Visual Encoding Design

Get to Know Germany COLORING & ACTIVIT Y BOOK

Color in Information Visualization

Colour Features in Adobe Creative Suite

Mapping: Methods & Tips

Using the NTSC color space to double the quantity of information in an image

Fundamentals of Multimedia. Lecture 3 Color in Image & Video

Color Reproduction Complex

Why visualize data? Advanced GDA and Software: Multivariate approaches, Interactive Graphics, Mondrian, iplots and R. German Bundestagswahl 2005

[source unknown] Cornell CS465 Fall 2004 Lecture Steve Marschner 1

Statistics for Engineers

Overview of Information Presentation Technologies for Visually Impaired and Applications in Broadcasting

pdf Why CbCr?

Edge-Aware Color Appearance. Supplemental Material

ggplot and ColorBrewer Nice plots with R November 30, 2015

Supplemental Material: Color Compatibility From Large Datasets

Color Reproduction Complex

Power saving in LCD panels

A Handbook of Statistical Analyses Using R. Brian S. Everitt and Torsten Hothorn

Research on Color Reproduction Characteristics of Mobile Terminals

Computer Graphics. Raster Scan Display System, Rasterization, Refresh Rate, Video Basics and Scan Conversion

Recap of Last (Last) Week

DCI Memorandum Regarding Direct View Displays

Congratulations to the Bureau of Labor Statistics for Creating an Excellent Graph By Jeffrey A. Shaffer 12/16/2011

Analysis and Improvement of the Open- StreetMap Street Color Scheme for Users with Color Vision Deficiencies

Introduction & Colour

Spearhead Display. How To Guide

Visual Imaging and the Electronic Age Color Science

University of Bristol - Explore Bristol Research. Peer reviewed version. Link to published version (if available): /ICIP.2016.

Man-Machine-Interface (Video) Nataliya Nadtoka coach: Jens Bialkowski

Colour Reproduction Performance of JPEG and JPEG2000 Codecs

Achieve Accurate Critical Display Performance With Professional and Consumer Level Displays

Visual Imaging and the Electronic Age Color Science

Quantify. The Subjective. PQM: A New Quantitative Tool for Evaluating Display Design Options

Objectives. Explain perception Analyze color perception Analyze vision Relate perception with color models

Essence of Image and Video

Graphical Perception. Graphical Perception. Graphical Perception. Which best encodes quantities? Jeffrey Heer Stanford University

A Study on the Psychology of Color Perception In Color Palettes & Color Pickers

DRAFT. Proposal to modify International Standard IEC

LCD and Plasma display technologies are promising solutions for large-format

DCI Requirements Image - Dynamics

MATH 214 (NOTES) Math 214 Al Nosedal. Department of Mathematics Indiana University of Pennsylvania. MATH 214 (NOTES) p. 1/3

Inventions on color selections in Graphical User Interfaces

LED Light Achieves The Colour Rendering Of Sunlight. Hubert Ott Technical Marketing Director Lighting Avnet Silica

Chapter 5. Describing Distributions Numerically. Finding the Center: The Median. Spread: Home on the Range. Finding the Center: The Median (cont.

Television History. Date / Place E. Nemer - 1

Discreet Logic Inc., All Rights Reserved. This documentation contains proprietary information of Discreet Logic Inc. and its subsidiaries.

Frequencies. Chapter 2. Descriptive statistics and charts

Hue, Value and Intensity

Package Polychrome. R topics documented: November 20, 2017

Television and video engineering

9/27/14. Color part 2. Today s Class. Mini- Presenta;ons. Jesse, Greg, Q. Readings for Today Today s Crayon Exercise

ICC Color Symposium. Soft Proofing Revisit and Reborn. Chris Bai Senior Color Expert BenQ. 22/10/2018 Hong Kong. Organizers

!"#"$%& Some slides taken shamelessly from Prof. Yao Wang s lecture slides

STAT 113: Statistics and Society Ellen Gundlach, Purdue University. (Chapters refer to Moore and Notz, Statistics: Concepts and Controversies, 8e)

ROY G BIV COLOR VISION EXPLORED

Improving Color Text Sharpness in Images with Reduced Chromatic Bandwidth

Principles of Data Visualization. Jeffrey University of Washington

Vannevar Bush: As We May Think

ILDA Image Data Transfer Format

Ch. 1: Audio/Image/Video Fundamentals Multimedia Systems. School of Electrical Engineering and Computer Science Oregon State University

Journal of Chemical and Pharmaceutical Research, 2015, 7(3): Research Article

INTRODUCTION TO GRAPHICS. Color Vision Simulator Examples

How to use the NATIVE format reader Readmsg.exe

Preventing Illegal Colors

VISUAL MILL LAB. SECTION 1: Complete the following tests and fill out the appropriate sections on your Visual Mill Color Deficit Worksheet.

Getting My Art Talk On Lesson 2

Real-time body tracking of a teacher for automatic dimming of overlapping screen areas for a large display device being used for teaching

Tradeoffs in information graphics 1. Andrew Gelman 2 and Antony Unwin Oct 2012

Computer and Machine Vision

Wide Color Gamut SET EXPO 2016

Colors. Matthew Woehlke

Calibration Best Practices

K-EYE K10 & K20 HCR OPERATING MODES

Fundamentals of Studio Art I

UNIVERSITY OF MASSACHUSETTS Department of Biostatistics and Epidemiology BioEpi 540W - Introduction to Biostatistics Fall 2002

CSE Data Visualization. Graphical Perception. Jeffrey Heer University of Washington

TECHNICAL SUPPLEMENT FOR THE DELIVERY OF PROGRAMMES WITH HIGH DYNAMIC RANGE

Package colorpatch. June 10, 2017

Processing. Electrical Engineering, Department. IIT Kanpur. NPTEL Online - IIT Kanpur

7thSense Design Delta Media Server

Getting Started with the LabVIEW Sound and Vibration Toolkit

Chapter 10. Lighting Lighting of Indoor Workplaces 180

ILDA Image Data Transfer Format

Calibration of Colour Analysers

Graphical User Interface for Modifying Structables and their Mosaic Plots

USER MANUAL. VP-425 PC / Component to HDMI Scaler MODEL: P/N: Rev 3

colors AN INTRODUCTION TO USING COLORS FOR UNITY v1.1

Circular Statistics Applied to Colour Images

ELEMENTS AND PRINCIPLES OF DESIGN

Media Information. Trade fairs and conferences supra-regional regional. Frankfurt/Main, Heimtextil. Essen,

Transcription:

Somewhere over the Rainbow How to Make Effective Use of Colors in Statistical Graphics Achim Zeileis https://eeecon.uibk.ac.at/~zeileis/

Introduction Zeileis A, Hornik K, Murrell P (2009). Escaping RGBland: Selecting Colors for Statistical Graphics. Computational Statistics & Data Analysis, 53(9), 3259 3270. doi:10.1016/j.csda.2008.11.033 Stauffer R, Mayr GJ, Dabernig M, Zeileis A (2015). Somewhere over the Rainbow: How to Make Effective Use of Colors in Meteorological Visualizations. Bulletin of the American Meteorological Society, 96(2), 203 216. doi:10.1175/bams-d-13-00155.1 Ihaka R, Murrell P, Hornik K, Fisher J, Stauffer R, Zeileis A (2016). colorspace: Color Space Manipulation. R package version 1.3-2. https://cran.r-project.org/package=colorspace Overview: https://hclwizard.org/

Introduction Color: Integral element in graphical displays. Easily available in statistical software. Omnipresent in (electronic) publications: Technical reports, electronic journal articles, presentation slides. Problem: Little guidance about how to choose appropriate colors for a particular visualization task. Question: What are useful color palettes for coding qualitative and quantitative variables?

Introduction Main goal of our work: Raise awareness of the issue. Introduce Hue-Chroma-Luminance (HCL) model. Based on human perception. Better control for choosing color palettes. Provide convenient software for exploring and assessing HCL-based palettes.

RGB rainbow RGB color space: And the (in)famous rainbow color palette.

RGB rainbow = RGB color space: And the (in)famous rainbow color palette.

RGB rainbow RGB rainbow 1.0 RGB rainbow spectrum 1.0 0.8 0.8 0.6 0.6 RGB 0.4 0.2 0.0 Red Green Blue Desaturated 0.4 0.2 0.0

RGB rainbow RGB rainbow RGB rainbow spectrum 1.0 1.0 0.8 0.8 0.6 0.6 RGB 0.4 0.2 0.0 Red Green Blue Desaturated 0.4 0.2 0.0 The default color in many software packages. Conveniently used by many practitioners. Defaults only change slowly (if at all). Question: Everybody does it why should it be wrong?

What s wrong? Original figure as published by the NOAA (2012-10-27).

What s wrong? Gradients: Very strong. Original figure as published by the NOAA (2012-10-27).

What s wrong? Gradients: Very strong. Saturation: Highly-saturated colors. Original figure as published by the NOAA (2012-10-27).

What s wrong? Gradients: Very strong. Saturation: Highly-saturated colors. Discontinuous: Bright, dark, bright, dark,... Original figure as published by the NOAA (2012-10-27).

What s wrong? Gradients: Very strong. Saturation: Highly-saturated colors. Discontinuous: Bright, dark, bright, dark,... Original figure as published by the NOAA (2012-10-27). Basic guidelines: Colors should be assisting, simple, clear, appealing.

What s wrong? Desaturated version of the original figure.

What s wrong? Assignment: No longer unique. Desaturated version of the original figure.

What s wrong? Assignment: No longer unique. Interpretation: Where is the maximum? Desaturated version of the original figure.

What s wrong? Assignment: No longer unique. Interpretation: Where is the maximum? Focus: On dark artefacts. Desaturated version of the original figure.

What s wrong? Assignment: No longer unique. Interpretation: Where is the maximum? Focus: On dark artefacts. Desaturated version of the original figure. Color should: Work everywhere, guide to important information.

What s wrong? What color-blind people see (red-green weakness). About 5% of all Europeans are affected.

What s wrong? End user: Who is it? Consider: Visual constraints? What color-blind people see (red-green weakness). About 5% of all Europeans are affected.

What s wrong? End user: Who is it? Consider: Visual constraints? What color-blind people see (red-green weakness). About 5% of all Europeans are affected. Color should: Consider end user needs.

Challenges Summary: The colors in a palette should be simple and natural, not be unappealing, highlight the important information, not mislead the reader, work everywhere and for everyone.

Challenges Summary: The colors in a palette should be simple and natural, not be unappealing, highlight the important information, not mislead the reader, work everywhere and for everyone. In practice: People often do not think about it at all.... and simply use default colors.

Challenges Summary: The colors in a palette should be simple and natural, not be unappealing, highlight the important information, not mislead the reader, work everywhere and for everyone. In practice: People often do not think about it at all.... and simply use default colors. Potential problems: For end users reviewer, supervisor, colleague, customer. For your own day-to-day work.

HCL rainbow A HCL rainbow HCL rainbow spectrum 100 360 80 300 HCL 60 40 20 0 Hue Chroma Luminance Desaturated 240 180 120 60 0 Hue: Type of color. Chroma: Colorfulness. Luminance: Brightness.

HCL color space Perceptually-based color model: Hue Hue: Type of color. Chroma Chroma: Colorfulness. Luminance Luminance: Brightness.

HCL version Same information, HCL-based color palette.

HCL version Colors: Smooth gradients. Information: Guiding, no hidden information. Works: Screen, projector, gray-scale device. Same information, HCL-based color palette.

HCL version Colors: Smooth gradients. Information: Guiding, no hidden information. Works: Screen, projector, gray-scale device. Same information, HCL-based color palette (red-green weakness).

HCL version Same information, HCL-based color palette (desaturated). Colors: Smooth gradients. Information: Guiding, no hidden information. Works: Screen, projector, gray-scale device.

HCL version Assignment: Higher values (more precipitation) lower luminance. Same information, HCL-based color palette (desaturated).

HCL version Same information, HCL-based color palette (desaturated). Assignment: Higher values (more precipitation) lower luminance. Focus: Lead readers to most important areas.

HCL version Same information, HCL-based color palette (desaturated). Assignment: Higher values (more precipitation) lower luminance. Focus: Lead readers to most important areas. Summary: Solved a lot of problems by changing the color palette.

Experiences with practitioners In the beginning: Hesitation of colleagues. Not necessary! Why should we change existing products? Everybody does it like this...

Experiences with practitioners In the beginning: Hesitation of colleagues. Not necessary! Why should we change existing products? Everybody does it like this... A few days later: Mainly positive feedback Decrease of misinterpretations in classroom ( Weather and Forecast ). Much easier to interpret... How can I make use of those palettes (in my software)?

Experiences with practitioners In the beginning: Hesitation of colleagues. Not necessary! Why should we change existing products? Everybody does it like this... A few days later: Mainly positive feedback Decrease of misinterpretations in classroom ( Weather and Forecast ). Much easier to interpret... How can I make use of those palettes (in my software)? Visit https://hclwizard.org/

Experiences with practitioners

Experiences with practitioners In R: HCL color space: hcl() or polarluv() in colorspace. HCL-based palettes in colorspace: rainbow_hcl(), heat_hcl(), sequential_hcl(), diverge_hcl(),... Interactive exploration: choose_palette() (in Tcl/Tk) or hclwizard() (in shiny). Further useful packages: RColorBrewer (fixed palettes from ColorBrewer.org), ggplot2,...

Color vision and color spaces Human color vision is hypothesized to have evolved in three stages: 1 Light/dark (monochrome only). 2 Yellow/blue (associated with warm/cold colors). 3 Green/red (associated with ripeness of fruit). Yellow Green Red Blue

Color vision and color spaces Due to these three color axes, colors are typically described as locations in a 3-dimensional space, often by mixing three primary colors, e.g., RGB or CIEXYZ. Physiological axes do not correspond to natural perception of color but rather to polar coordinates in the color plane: Hue (dominant wavelength). Chroma (colorfulness, intensity of color as compared to gray). Luminance (brightness, amount of gray). Perceptually based color spaces try to capture these three axes of the human perceptual system.

Color space: HCL HCL space: Perceptually based color space, polar coordinates in CIELUV space. Specification: Triplet (H, C, L) with H = 0,..., 360 and C, L = 0,..., 100. Shape: Distorted double cone. Problem: Care is needed when traversing along the axes due to distorted shape. In R: hcl() or polarluv() in colorspace.

Color space: HCL

Color space: HCL

Color space: HCL

Color palettes: Qualitative Goal: Code qualitative information. Solution: Use different hues for different categories. Keep chroma and luminance fixed, e.g., (H, 50, 70) Remark: The admissible hues (within HCL space) depend on the values of chroma and luminance chosen.

Color palettes: Qualitative

Color palettes: Qualitative Hues can be chosen from different subsets of [0, 360] to create different moods or as metaphors for the categories they code (Ihaka, 2003). dynamic [30, 300] harmonic [60, 240] cold [270, 150] warm [90, 30]

Color palettes: Qualitative Illustrations: Pie chart of seats in the German parliament Bundestag, 2005. Mosaic display of votes for the German Bundestag, 2005. Scatter plot with three clusters (and many points). Colors: Palettes are constructed based on HSV space, especially by varying hue. Problems: Flashy colors: Good for drawing attention to a plot but hard to look at for a longer time. Large areas of saturated colors: Can produce distracting after-image effects.

Color palettes: Qualitative SPD CDU/CSU Gruene Linke FDP

Color palettes: Qualitative SPD CDU/CSU Gruene Linke FDP

Color palettes: Qualitative Schleswig Holstein Hamburg Niedersachsen Bremen CDU/CSU FDP SPD Gr Li Nordrhein Westfalen Hessen Rheinland Pfalz Bayern Baden Wuerttemberg Saarland Mecklenburg Vorpommern Brandenburg Sachsen Anhalt Berlin Sachsen Thueringen

Color palettes: Qualitative Schleswig Holstein Hamburg Niedersachsen Bremen CDU/CSU FDP SPD Gr Li Nordrhein Westfalen Hessen Rheinland Pfalz Bayern Baden Wuerttemberg Saarland Mecklenburg Vorpommern Brandenburg Sachsen Anhalt Berlin Sachsen Thueringen

Color palettes: Qualitative

Color palettes: Qualitative

Color palettes: Sequential Goal: Code quantitative information. Intensity/interestingness i ranges in [0, 1], where 0 is uninteresting, 1 is interesting. Solution: Code i by increasing amount of gray (luminance), no color used, e.g., (H, 0, 90 i 60) The hue H does not matter, chroma is set to 0 (no color), luminance ranges in [30, 90], avoiding the extreme colors black and white. Modification: In addition, code i by colorfulness (chroma). Thus, more formally: for a fixed hue H. (H, 0 + i C max, L max i (L max L min )

Color palettes: Sequential

Color palettes: Sequential Modification: To increase the contrast within the palette even further, simultaneously vary the hue as well: (H 2 i (H 1 H 2 ), C max i p1 (C max C min ), L max i p2 (L max L min )). To make the change in hue visible, the chroma needs to increase rather quickly for low values of i and then only slowly for higher values of i. A convenient transformation for achieving this is to use i p instead of i with different powers for chroma and luminance.

Color palettes: Sequential

Color palettes: Sequential Illustrations: Heatmap of bivariate kernel density estimate for Old Faithful geyser eruptions data. Palettes: rainbow() heat.colors() heat_hcl() (color and desaturated)

Color palettes: Sequential

Color palettes: Sequential

Color palettes: Sequential

Color palettes: Sequential

Color palettes: Diverging Goal: Code quantitative information. Intensity/interestingness i ranges in [ 1, 1], where 0 is uninteresting, ±1 is interesting. Solution: Combine sequential palettes with different hues. Remark: To achieve both large chroma and/or large luminance contrasts, use hues with similar chroma/luminance plane, e.g., H = 0 (red) and H = 260 (blue).

Color palettes: Diverging

Color palettes: Diverging

Color palettes: Diverging Illustrations: Map of Nigeria shaded by posterior mode estimates for childhood mortality. Model-based mosaic display for treatment of arthritis. Palettes: rainbow() vs. diverge_hcl()

Color palettes: Diverging

Color palettes: Diverging

Color blindness Problem: A few percent of humans (particularly males) have deficiencies in their color vision, typically referred to as color blindness. Specifically: The most common forms of color blindness are different types of red-green color blindness: deuteranopia (lack of green-sensitive pigment), protanopia (lack of red-sensitive pigment). Solution: Construct suitable HCL colors. Use large large luminance contrasts (visible even for monochromats). Use chroma contrasts on the yellow-blue axis (visible for dichromats). Check colors by emulating dichromatic vision, e.g., utilizing dichromat (Lumley 2006).

Color blindness

Color blindness

Color blindness

Color blindness

Color blindness

Color blindness

Color blindness

Color blindness

Summary Choice of colors: Use color with care, do not overestimate power of color. Think about who the readers/users are. Avoid large areas of flashy, highly-saturated colors. Employ monotonic luminance scale for numerical data. Try it yourself: https://hclwizard.org colorspace in R.

References Zeileis A, Hornik K, Murrell P (2009). Escaping RGBland: Selecting Colors for Statistical Graphics. Computational Statistics & Data Analysis, 53, 3259 3270. doi:10.1016/j.csda.2008.11.033. Stauffer R, Mayr GJ, Dabernig M, Zeileis A (2015). Somewhere over the Rainbow: How to Make Effective Use of Colors in Meteorological Visualizations. Bulletin of the American Meteorological Society, 96(2), 203 216. doi:10.1175/bams-d-13-00155.1 Ihaka R, Murrell P, Hornik K, Fisher JC, Stauffer R, Zeileis A (2016). colorspace: Color Space Manipulation. R package version 1.3-2. https://cran.r-project.org/package=colorspace Ihaka R (2003). Colour for Presentation Graphics. In K Hornik, F Leisch, A Zeileis (eds.), Proceedings of the 3rd International Workshop on Distributed Statistical Computing, Vienna, Austria, ISSN 1609-395X, http://www.ci.tuwien.ac.at/conferences/dsc-2003/proceedings/. Lumley T (2006). Color Coding and Color Blindness in Statistical Graphics. ASA Statistical Computing & Graphics Newsletter, 17(2), 4 7. http: //www.amstat-online.org/sections/graphics/newsletter/volumes/v172.pdf. Wilke CO (2018). Color Scales. In: Fundamentals of Data Visualization. O Reilly Media, Forthcoming. http://serialmentor.com/dataviz/color-basics.html.