colorspace: A Toolbox for Manipulating and Assessing Colors and Palettes

The R package colorspace provides a flexible toolbox for selecting individual colors or color palettes, manipulating these colors, and employing them in statistical graphics and data visualizations. In particular, the package provides a broad range of color palettes based on the HCL (Hue-Chroma-Luminance) color space. The three HCL dimensions have been shown to match those of the human visual system very well, thus facilitating intuitive selection of color palettes through trajectories in this space. Using the HCL color model general strategies for three types of palettes are implemented: (1) Qualitative for coding categorical information, i.e., where no particular ordering of categories is available. (2) Sequential for coding ordered/numeric information, i.e., going from high to low (or vice versa). (3) Diverging for coding ordered/numeric information around a central neutral value, i.e., where colors diverge from neutral to two extremes. To aid selection and application of these palettes the package also contains scales for use with ggplot2, shiny (and tcltk) apps for interactive exploration, visualizations of palette properties, accompanying manipulation utilities (like desaturation and lighten/darken), and emulation of color vision deficiencies.

[1]  Manuel Menezes de Oliveira Neto,et al.  A Physiologically-based Model for Simulation of Color Vision Deficiency , 2009, IEEE Transactions on Visualization and Computer Graphics.

[2]  Kurt Hornik,et al.  Escaping RGBland: Selecting colors for statistical graphics , 2009, Comput. Stat. Data Anal..

[3]  Hadley Wickham,et al.  ggplot2 - Elegant Graphics for Data Analysis (2nd Edition) , 2017 .

[4]  J D Mollon,et al.  Computerized simulation of color appearance for dichromats. , 1997, Journal of the Optical Society of America. A, Optics, image science, and vision.

[5]  Mark Bailey,et al.  The Grammar of Graphics , 2007, Technometrics.

[6]  Edward R. Tufte,et al.  Envisioning Information , 1990 .

[7]  Virgilio Gómez-Rubio,et al.  ggplot2 - Elegant Graphics for Data Analysis (2nd Edition) , 2017 .

[8]  Reto Stauffer,et al.  www.econstor.eu Somewhere over the rainbow: How to make effective use of colors in meteorological visualizations , 2013 .

[9]  Kevin R. Coombes,et al.  Polychrome: Creating and Assessing Qualitative Palettes With Many Colors , 2018 .

[10]  J. D. Mollon,et al.  What do colour-blind people see? , 1995, Nature.

[11]  Françoise Viénot,et al.  Digital video colourmaps for checking the legibility of displays by dichromats , 1999 .

[12]  Fabio Crameri,et al.  Geodynamic diagnostics , scientific visualisation and StagLab 3 . 0 , 2018 .

[13]  Jan J. Koenderink Color Spaces , 2000, Color Imaging Conference.

[14]  Colin Ware,et al.  Color sequences for univariate maps: theory, experiments and principles , 1988, IEEE Computer Graphics and Applications.

[15]  Charles Poynton Frequently Asked Questions about Color , 1997 .

[16]  Cynthia A. Brewer,et al.  ColorBrewer.org: An Online Tool for Selecting Colour Schemes for Maps , 2003 .

[17]  N. Justin Marshall,et al.  Human Color Vision , 2016, Springer Series in Vision Research.

[18]  Ross Ihaka,et al.  Colour for Presentation Graphics , 2003 .

[19]  Cynthia A. Brewer,et al.  Color use guidelines for data representation , 1999 .

[20]  Guido van Rossum,et al.  Python Programming Language , 2007, USENIX Annual Technical Conference.

[21]  J. Mollon Color vision. , 1982, Annual review of psychology.

[22]  R Core Team,et al.  R: A language and environment for statistical computing. , 2014 .