Escaping RGBland: Selecting Colors for Statistical Graphics

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

HCL-Based Color Palettes in R

A Toolbox for Manipulating and Assessing Color Palettes for Statistical Graphics

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

CSE Data Visualization. Color. Jeffrey Heer University of Washington

Understanding Human Color Vision

Get to Know Germany COLORING & ACTIVIT Y BOOK

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

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

The theory of data visualisation

Visual Encoding Design

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

Principles of Data Visualization. Jeffrey University of Washington

Mapping: Methods & Tips

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

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

Supplemental Material: Color Compatibility From Large Datasets

Circular Statistics Applied to Colour Images

Automatic Testing of Color Blindness

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

Graphical User Interface for Modifying Structables and their Mosaic Plots

Television History. Date / Place E. Nemer - 1

Color in Information Visualization

Recap of Last (Last) Week

Statistics for Engineers

Visual Imaging and the Electronic Age Color Science

Introduction & Colour

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

Visual Imaging and the Electronic Age Color Science

Essence of Image and Video

Frequencies. Chapter 2. Descriptive statistics and charts

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

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

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

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

Improving Color Text Sharpness in Images with Reduced Chromatic Bandwidth

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

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

Computer and Machine Vision

Inventions on color selections in Graphical User Interfaces

Wide Color Gamut SET EXPO 2016

Colour Features in Adobe Creative Suite

DRAFT. Proposal to modify International Standard IEC

Edge-Aware Color Appearance. Supplemental Material

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

Colour Reproduction Performance of JPEG and JPEG2000 Codecs

Fundamentals of Multimedia. Lecture 3 Color in Image & Video

High-Definition, Standard-Definition Compatible Color Bar Signal

Vannevar Bush: As We May Think

Research on Color Reproduction Characteristics of Mobile Terminals

Minimizing the Perception of Chromatic Noise in Digital Images

Achieve Accurate Critical Display Performance With Professional and Consumer Level Displays

4KScope Software Waveform, Vectorscope, Histogram and Monitor

Spearhead Display. How To Guide

Color Reproduction Complex

Package Polychrome. R topics documented: November 20, 2017

Power saving in LCD panels

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

ADDRESSABLE TV. Unterföhring, April 2018

Video Signals and Circuits Part 2

Visual Communication at Limited Colour Display Capability

Color Science Fundamentals in Motion Imaging

one M2M Logo Brand Guidelines

Preventing Illegal Colors

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

The software concept. Try yourself and experience how your processes are significantly simplified. You need. weqube.

High-resolution screens have become a mainstay on modern smartphones. Initial. Displays 3.1 LCD

Chrominance Subsampling in Digital Images

YOUR ONE STOP SHOP FOR SERVICE & FUNDING IN GERMANY

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

Color Reproduction Complex

ILDA Image Data Transfer Format

ADDRESSABLE TV. Unterföhring, November 2018

TECHNICAL SUPPLEMENT FOR THE DELIVERY OF PROGRAMMES WITH HIGH DYNAMIC RANGE

COLOR AND COLOR SPACES ABSTRACT

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

Television and video engineering

INTRODUCTION TO GRAPHICS. Color Vision Simulator Examples

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

DCI Memorandum Regarding Direct View Displays

Dan Schuster Arusha Technical College March 4, 2010

The software concept. Try yourself and experience how your processes are significantly simplified. You need. weqube.

Video coding standards

Pivoting Object Tracking System

Primary Colors. Color Palette

A Colorimetric Study of Spatial Uniformity in Projection Displays

ADDRESSABLE TV. Unterföhring, February 2018

Chapter 27. Inferences for Regression. Remembering Regression. An Example: Body Fat and Waist Size. Remembering Regression (cont.)

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

How to use the NATIVE format reader Readmsg.exe

Color Spaces in Digital Video

Chapter 4. Displaying Quantitative Data. Copyright 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Math 81 Graphing. Cartesian Coordinate System Plotting Ordered Pairs (x, y) (x is horizontal, y is vertical) center is (0,0) Quadrants:

Detecting Medicaid Data Anomalies Using Data Mining Techniques Shenjun Zhu, Qiling Shi, Aran Canes, AdvanceMed Corporation, Nashville, TN

W 9-2: A Versatile, Complete and Compact Series

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

The Research of Controlling Loudness in the Timbre Subjective Perception Experiment of Sheng

DISPLAY WEEK 2015 REVIEW AND METROLOGY ISSUE

The APA Style Converter: A Web-based interface for converting articles to APA style for publication

ROY G BIV COLOR VISION EXPLORED

Transcription:

Escaping RGBland: Selecting Colors for Statistical Graphics Achim Zeileis Kurt Hornik Paul Murrell http://statmath.wu-wien.ac.at/~zeileis/

Overview Motivation Statistical graphics and color Color vision and color spaces Palettes (in HCL space) Qualitative Sequential Diverging Color blindness Software

Motivation: Statistical graphics Information in statistical graphics is typically coded by: length easy to decode for humans best for aligned common scales area, volume more difficult to decode dependence on shape: long/thin is seen larger than compact/convex dependence on color: lighter areas seen larger angle, slope problematic for humans dependence on orientation color omni-present in statistical graphics

Motivation: Statistical graphics particularly important for shading areas (e.g., bar plots, pie charts, mosaic displays, heatmaps,... ) avoid large areas of saturated colors powerful for encoding categorical information care needed for coding quantitative information More often than not: Only little guidance about how to choose a suitable palette for a certain visualization task. Question: What are useful color palettes for coding qualitative and quantitative information? Currently: Many palettes are constructed based on HSV space, especially by varying hue.

Motivation: Statistical graphics Examples: heatmap of bivariate kernel density estimate for Old Faithful geyser eruptions data, map of Nigeria shaded by posterior mode estimates for childhood mortality, pie chart of seats in the German parliament Bundestag, mosaic display of votes for the German Bundestag, model-based mosaic display for treatment of arthritis, scatter plot with three clusters (and many points).

Motivation: Statistical graphics

Motivation: Statistical graphics

Motivation: Statistical graphics SPD CDU/CSU Grüne Linke FDP

Motivation: Statistical graphics Schleswig Holstein Hamburg Niedersachsen Bremen CDU/CSU FDP SPD Gr Li Nordrhein Westfalen Hessen Rheinland Pfalz Bayern Baden Württemberg Saarland Mecklenburg Vorpommern Brandenburg Sachsen Anhalt Berlin Sachsen Thüringen

Motivation: Statistical graphics Placebo Treatment Treated Pearson residuals: 1.87 1.64 Improvement Marked Some None 1.24 0.00 1.24 1.72 p value = 0.0096

Motivation: Statistical graphics

Motivation: Statistical graphics Problems: Flashy colors: good for drawing attention to a plot but hard to look at for a longer time. Large areas of saturated colors: after-image effects. can produce distracting Unbalanced colors: light and dark colors are mixed; or positive and negative colors are difficult to compare. Quantitative variables are often difficult to decode.

Motivation: Statistical graphics Solutions: Use pre-fabricated color palettes (with fixed number of colors) designed for specific visualization tasks: Color- Brewer.org (see Brewer, 1999). Problem: little flexiblity. Selecting colors along axes in a color space whose axes can be matched with perceptual axes of the human visual system. Leads to similar palettes compared to ColorBrewer.org but offers more flexibility via a general principle for choosing palettes.

Color vision and color spaces Human color vision is hypothesized to have evolved in three distinct 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, e.g., HSV or HCL.

Color vision and color spaces HSV space is a standard transformation of RGB space implemented in most computer packages. Specification: triplet (H, S, V ) with H = 0,..., 360 and S, V = 0,..., 100, often all transformed to unit interval (e.g., in R). Shape: cone (or transformed to cylinder). Problem: dimensions are confounded, hence not really perceptually based.

Color vision and color spaces

Color vision and color spaces

Color vision and color spaces HCL space is a 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.

Color vision and color spaces

Color vision and color spaces

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. Hues can be chosen from different subsets of [0, 360] to create different moods or as metaphors for the categories they code (see Ihaka, 2003).

Palettes: Qualitative

Palettes: Qualitative 120 60 120 60 180 0 180 0 240 300 240 300

Palettes: Qualitative dynamic [30, 300] harmonic [60, 240] cold [270, 150] warm [90, 30]

Palettes: Qualitative SPD CDU/CSU Grüne Linke FDP

Palettes: Qualitative SPD CDU/CSU Grüne Linke FDP

Palettes: Qualitative Schleswig Holstein Hamburg Niedersachsen Bremen CDU/CSU FDP SPD Gr Li Nordrhein Westfalen Hessen Rheinland Pfalz Bayern Baden Württemberg Saarland Mecklenburg Vorpommern Brandenburg Sachsen Anhalt Berlin Sachsen Thüringen

Palettes: Qualitative Schleswig Holstein Hamburg Niedersachsen Bremen CDU/CSU FDP SPD Gr Li Nordrhein Westfalen Hessen Rheinland Pfalz Bayern Baden Württemberg Saarland Mecklenburg Vorpommern Brandenburg Sachsen Anhalt Berlin Sachsen Thüringen

Palettes: Qualitative

Palettes: Qualitative

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 )

Palettes: Sequential

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.

Palettes: Sequential

Palettes: Sequential

Palettes: Sequential

Palettes: Sequential

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).

Palettes: Diverging

Palettes: Diverging

Palettes: Diverging

Palettes: Diverging

Palettes: Diverging Placebo Treatment Treated Pearson residuals: 1.87 1.64 Improvement Marked Some None 1.24 0.00 1.24 1.72 p value = 0.0096

Palettes: Diverging Placebo Treatment Treated Pearson residuals: 1.87 1.64 Improvement Marked Some None 1.24 0.00 1.24 1.72 p value = 0.0096

Color blindness A few percent of humans (particularly males) have deficiencies in their color vision, typically referred to as color blindness. 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). 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

Color blindness

Software Implementing HCL-based palettes is not difficult: If HCL colors are available, our formulas are straightforward to implement. If not, HCL coordinates typically need to be converted to RGB coordinates for display. Formulas are available, e.g., in Wikipedia (2007ab). R has an implementation of various color spaces (including HCL) in Ross Ihaka s colorspace package. Based on this, our vcd package provides rainbow_hcl(), sequential_hcl(), heat_hcl(), and diverge_hcl(). For documentation and further examples, see?rainbow_hcl and vignette("hcl-colors", package = "vcd").

References Brewer CA (1999). Color Use Guidelines for Data Representation. In Proceedings of the Section on Statistical Graphics, American Statistical Association, Alexandria, VA, 55 60.. 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, URL 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. URL http://www.amstat-online.org/ sections/graphics/newsletter/volumes/v172.pdf. Wikipedia (2007a). CIELUV Color Space Wikipedia, The Free Encyclopedia. URL http: //en.wikipedia.org/wiki/cieluv_color_space. accessed 2007-11-06. Wikipedia (2007b). HSV Color Space Wikipedia, The Free Encyclopedia. URL http: //en.wikipedia.org/wiki/hsv_color_space. accessed 2007-11-06. Zeileis A, Hornik K, Murrell P (2007). Escaping RGBland: Selecting Colors for Statistical Graphics. Report 61, Department of Statistics and Mathematics, Wirtschaftsuniversität Wien, Research Report Series. URL http://epub.wu-wien.ac.at/. Zeileis A, Meyer D, Hornik K (2007). Residual-based Shadings for Visualizing (Conditional) Independence. Journal of Computational and Graphical Statistics, 16(3), 507 525. doi:10.1198/106186007x237856.