A Toolbox for Manipulating and Assessing Color Palettes for Statistical Graphics

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

Escaping RGBland: Selecting Colors 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

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

Package colorpatch. June 10, 2017

Package Polychrome. R topics documented: November 20, 2017

Colour Features in Adobe Creative Suite

Understanding Human Color Vision

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

Power saving in LCD panels

one M2M Logo Brand Guidelines

Primary Colors. Color Palette

Company Software Manual version Issued Date Sony Corporation Projector Calibration Pro Version 0.04 Mar 3rd, 2017

The theory of data visualisation

Mapping: Methods & Tips

LED DRIVERS. LQC4D-V1 4 channels. User Manual FEATURES

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

Visual Imaging and the Electronic Age Color Science

To show the Video Scopes, click on the down arrow next to View located in the upper- right corner of your playback panel.

Introduction & Colour

COLOR AND COLOR SPACES ABSTRACT

Vannevar Bush: As We May Think

Using Low-Cost Plasma Displays As Reference Monitors. Peter Putman, CTS, ISF President, ROAM Consulting LLC Editor/Publisher, HDTVexpert.

Essence of Image and Video

Fundamentals of Multimedia. Lecture 3 Color in Image & Video

CIE CIE

Superior Digital Video Images through Multi-Dimensional Color Tables

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

Graphical User Interface for Modifying Structables and their Mosaic Plots

Supplemental Material: Color Compatibility From Large Datasets

Evaluation Monitors and Projectors

Visual Imaging and the Electronic Age Color Science

Achieve Accurate Critical Display Performance With Professional and Consumer Level Displays

Spearhead Display. How To Guide

An Alternative Color Space for Color Selection and Image Manipulation with Improved Brightness Component

Visual Encoding Design

Colors. Matthew Woehlke

Color in Information Visualization

Minimizing the Perception of Chromatic Noise in Digital Images

4KScope Software Waveform, Vectorscope, Histogram and Monitor

Preventing Illegal Colors

K-EYE K10 & K20 HCR OPERATING MODES

Circular Statistics Applied to Colour Images

Hardware Calibration LCD Monitors. ColorEdge Series. Color as it s meant to be

VP2780-4K. Best for CAD/CAM, photography, architecture and video editing.

Dan Schuster Arusha Technical College March 4, 2010

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

Appendices. RS232 Commands and Protocol Function List. RS232 Pin Assignments. English. RS232 shell is grounded.

sdiscope Signal Analysis Software Version 6

Automatic Testing of Color Blindness

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

Color Reproduction Complex

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

Image and video encoding: A big picture. Predictive. Predictive Coding. Post- Processing (Post-filtering) Lossy. Pre-

User s Manual Color Vision Recorder version 4

LED Lighting 12 th Annual Building Codes Education Conference March Bozeman, MT Jaya Mukhopadhyay, Co-Director, Integrated Design Lab

pdf Why CbCr?

Specification of colour bar test pattern for high dynamic range television systems

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

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

An Introduction to TrueSource

Colour in Graphics. Francesca R. Luzzi University of Udine, Italy

Understanding Fidelity

SMPTE 259M EG-1 Color Bar Generation, RP 178 Pathological Generation, Grey Pattern Generation IP Core AN4087

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

Background Statement for SEMI Draft Document 4571B New Standard: Measurements For PDP Tone and Color Reproduction

Visual Style Guide April 2016

Computer and Machine Vision

ROY G BIV COLOR VISION EXPLORED

Package painter. August 13, 2018

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

User s Guide. Version

Edge-Aware Color Appearance. Supplemental Material

Remote Director. EIZO ColorEdge CG21. Collaborative Soft Proofing using the I. MANUFACTURER INTRODUCTION. SWOP Application Data Sheet

Logo Overview. Always use the original digital artwork, available through the Brand Center, to help maintain consistency and integrity.

Calibrating and Profiling Your Monitor

Role of Color Processing in Display

Network Video Analyzer. Signal Analysis Software Version 6

Monitoring HD and SD Color Gamut in a Broadcast Environment

User s Guide. Version

LaCie 321 LCD Monitor

User s Guide. Version

Types of CRT Display Devices. DVST-Direct View Storage Tube

Calibration Best Practices

User Manual February, 2011

Recap of Last (Last) Week

ColorEdge Color Calibration LCD Monitors

Palette Master Color Management Software

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

Research on Color Reproduction Characteristics of Mobile Terminals

Inventions on color selections in Graphical User Interfaces

Table of Contents CHAPTER 1: INTRODUCTION: THE BASICS...6

ILDA Image Data Transfer Format

K-EYE K10 & K20 HCR OPERATING MODES

INTERLACE CHARACTER EDITOR (ICE) Programmed by Bobby Clark. Version 1.0 for the ABBUC Software Contest 2011

ICSA LABS LOGO USAGE GUIDELINES

Television History. Date / Place E. Nemer - 1

Downloads from:

Transcription:

A Toolbox for Manipulating and Assessing Color Palettes for Statistical Graphics Achim Zeileis, Jason C. Fisher, Kurt Hornik, Ross Ihaka, Claire D. McWhite, Paul Murrell, Reto Stauffer, Claus O. Wilke http://colorspace.r-forge.r-project.org/

Color spaces Origin of the package: Convert colors between various three-dimensional representations of color. In particular: From the perceptually-based HCL (Hue-Chroma-Luminance) to standard Red-Green-Blue (srgb, and corresponding hex codes) space. polarluv (= HCL) LUV HSV white point gamma XYZ = D65 RGB (= 2.4) srgb hex polarlab LAB HLS 1/18

HCL vs. RGB HCL: Polar coordinates in CIELUV. Captures perceptual dimensions of the human visual system very well. Hue (Type of color) Chroma (Colorfulness) Luminance (Brightness) 2/18

HCL vs. RGB HCL: Polar coordinates in CIELUV. Captures perceptual dimensions of the human visual system very well. RGB: Motivated by how computers/tvs used to generate and still represent color. Hue (Type of color) Red Chroma (Colorfulness) Green Luminance (Brightness) Blue 2/18

HCL vs. RGB: The End of the Rainbow Red / Green / Blue 0.0 0.2 0.4 0.6 0.8 1.0 RGB Spectrum Red Green Blue Chroma / Luminance 0 20 40 60 80 100 Hue Chroma Luminance HCL Spectrum 0 90 180 270 360 Hue 3/18

HCL vs. RGB: The End of the Rainbow Red / Green / Blue 0.0 0.2 0.4 0.6 0.8 1.0 RGB Spectrum Red Green Blue Red / Green / Blue 0.0 0.2 0.4 0.6 0.8 1.0 RGB Spectrum Red Green Blue Chroma / Luminance 0 20 40 60 80 100 Hue Chroma Luminance HCL Spectrum 0 90 180 270 360 Hue Chroma / Luminance 0 50 100 150 Hue Chroma Luminance HCL Spectrum 360 0 360 Hue 3/18

Color palettes: Somewhere over the Rainbow Qualitative (Set 2) Sequential (Blues 3) Diverging (Green Brown) Color Color Color Desaturated Desaturated Desaturated 4/18

Color palettes: Somewhere over the Rainbow Qualitative (Set 2) Sequential (Blues 3) Diverging (Green Brown) Color Color Color Desaturated Desaturated Desaturated Qualitative: For categorical information, i.e., where no particular ordering of categories is available. Function: qualitative_hcl(). 4/18

Color palettes: Somewhere over the Rainbow Qualitative (Set 2) Sequential (Blues 3) Diverging (Green Brown) Color Color Color Desaturated Desaturated Desaturated Qualitative: For categorical information, i.e., where no particular ordering of categories is available. Function: qualitative_hcl(). Sequential: For ordered/numeric information, i.e., where colors go from high to low (or vice versa). Function: sequential_hcl(). 4/18

Color palettes: Somewhere over the Rainbow Qualitative (Set 2) Sequential (Blues 3) Diverging (Green Brown) Color Color Color Desaturated Desaturated Desaturated Qualitative: For categorical information, i.e., where no particular ordering of categories is available. Function: qualitative_hcl(). Sequential: For ordered/numeric information, i.e., where colors go from high to low (or vice versa). Function: sequential_hcl(). Diverging: For ordered/numeric information around a central neutral value, i.e., where colors diverge from neutral to two extremes. Function: diverging_hcl(). 4/18

Color palettes: Somewhere over the Rainbow Sequential: Luminance contrast is crucial (dark to light or vice versa). Blues 2 Blues 3 Blues 5/18

Color palettes: Somewhere over the Rainbow Blues 2: Single hue. Decreasing chroma with increasing luminance. Blues 2 Blues 3 Blues Chroma / Luminance 0 20 40 60 80 100 Hue Chroma Luminance HCL Spectrum 0 90 180 270 360 Hue 5/18

Color palettes: Somewhere over the Rainbow Blues 3: Single hue. Triangular chroma to achieve higher luminance contrast. Blues 2 Blues 3 Blues Chroma / Luminance 0 20 40 60 80 100 Hue Chroma Luminance HCL Spectrum 0 90 180 270 360 Hue 5/18

Color palettes: Somewhere over the Rainbow Blues: Multi hue. Triangular chroma. High luminance contrast. Blues 2 Blues 3 Blues Chroma / Luminance 0 20 40 60 80 100 Hue Chroma Luminance HCL Spectrum 0 90 180 270 360 Hue 5/18

Color palettes: Somewhere over the Rainbow Diverging: Combine two sequential palettes with balanced chroma/luminance. Chroma / Luminance 0 20 40 60 80 100 Hue Chroma Luminance HCL Spectrum 0 90 180 270 360 Hue 6/18

Color palettes: Somewhere over the Rainbow Diverging: Combine two sequential palettes with balanced chroma/luminance. Chroma / Luminance 0 20 40 60 80 100 Hue Chroma Luminance HCL Spectrum 0 90 180 270 360 Hue Chroma / Luminance 0 20 40 60 80 100 Hue Chroma Luminance HCL Spectrum 0 90 180 270 360 Hue 6/18

Color palettes: Somewhere over the Rainbow R> hcl_palettes(plot = TRUE) Qualitative Greens 3 BluGrn YlOrBr Blue Red 2 Pastel 1 Oslo Teal OrRd Blue Red 3 Dark 2 Sequential (multi hue) TealGrn Oranges Red Green Dark 3 Purple Blue Emrld YlGn Purple Green Set 2 Red Purple BluYl YlGnBu Purple Brown Set 3 Red Blue ag_grnyl Reds Green Brown Warm Purple Orange Peach RdPu Blue Yellow 2 Cold Purple Yellow PinkYl PuRd Blue Yellow 3 Harmonic Blue Yellow Burg Purples Green Orange Dynamic Green Yellow BurgYl PuBuGn Cyan Magenta Sequential (single hue) Red Yellow RedOr PuBu Tropic Grays Heat OrYel Greens Broc Light Grays Heat 2 Purp BuGn Cork Blues 2 Terrain PurpOr GnBu Vik Blues 3 Terrain 2 Sunset BuPu Berlin Purples 2 Viridis Magenta Blues Lisbon Purples 3 Plasma SunsetDark Lajolla Tofino Reds 2 Inferno ag_sunset Turku Reds 3 Dark Mint BrwnYl Diverging Greens 2 Mint YlOrRd Blue Red 7/18

Statistical graphics Base: HCL palette functions return hex color vector. Typically passed to col = argument of base plotting functions. ggplot2: Scales of type scale_<aesthetic>_<datatype>_<colorscale>(). <aesthetic> is fill or color/colour. <datatype> is discrete or continuous. <colorscale> is qualitative, sequential, diverging, or divergingx. 8/18

Statistical graphics: Base R> q4 <- qualitative_hcl(4, palette = "Dark 3") R> plot(log(eustockmarkets), plot.type = "single", col = q4, lwd = 2) R> legend("topleft", colnames(eustockmarkets), col = q4, lwd = 3, bty = "n") log(eustockmarkets) 7.5 8.0 8.5 9.0 DAX SMI CAC FTSE 1992 1993 1994 1995 1996 1997 1998 Time 9/18

Statistical graphics: ggplot2 R> library("ggplot2") R> ggplot(iris, aes(x = Sepal.Length, fill = Species)) + geom_density(alpha = 0.6) + + scale_fill_discrete_qualitative(palette = "Dark 3") 1.2 density 0.8 Species setosa versicolor virginica 0.4 0.0 5 6 7 8 Sepal.Length 10/18

Visualization and assessment Visualizations: Based on vector of colors. swatchplot(): Color swatches. specplot(): Spectrum of HCL and/or RGB trajectories. hclplot(): Trajectories in 2-dimensional HCL space projections. demoplot(): Illustrations of typical (and simplified) statistical graphics. 11/18

Visualization and assessment Visualizations: Based on vector of colors. swatchplot(): Color swatches. specplot(): Spectrum of HCL and/or RGB trajectories. hclplot(): Trajectories in 2-dimensional HCL space projections. demoplot(): Illustrations of typical (and simplified) statistical graphics. Emulation: Color vision deficiency. deutan(): Deuteranopia (green deficient). protan(): Protanopia (red deficient). tritan(): Tritanopia (blue deficient). 11/18

Visualization and assessment: demoplot() R> cl <- sequential_hcl(5, palette = "Heat") R> demoplot(cl, type = "...") map heatmap scatter spine bar pie perspective mosaic lines 12/18

Approximations of other palettes ColorBrewer.org: YlGnBu Chroma / Luminance 0 20 40 60 80 100 Hue Chroma Luminance HCL Spectrum 0 90 180 270 360 Hue 13/18

Approximations of other palettes ColorBrewer.org: YlGnBu Viridis Chroma / Luminance 0 20 40 60 80 100 Hue Chroma Luminance HCL Spectrum 0 90 180 270 360 Hue Chroma / Luminance 0 20 40 60 80 100 Hue Chroma Luminance HCL Spectrum 0 90 180 270 360 Hue 13/18

Color apps Facilitate exploration: Graphical user interfaces as shiny apps. Palette constructor: choose_palette() or hclwizard() (also in tcltk). Color picker: choose_color() or hcl_color_picker(). Color vision deficiency emulator: cvd_emulator(). Online versions: http://hclwizard.org/ 14/18

Color apps: choose_palette() / hclwizard() 15/18

Color apps: choose_color() / hcl_color_picker() 16/18

Color apps: cvd_emulator() 17/18

References Ihaka R, Murrell P, Hornik K, Fisher JC, Stauffer R, Wilke CO, McWhite CD, Zeileis A (2019). colorspace: A Toolbox for Manipulating and Assessing Colors and Palettes. http://colorspace.r-forge.r-project.org/ 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 18/18