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

Full description

Bibliographic Details
Main Authors: Achim Zeileis, Jason C. Fisher, Kurt Hornik, Ross Ihaka, Claire D. McWhite, Paul Murrell, Reto Stauffer, Claus O. Wilke
Format: Article
Language:English
Published: Foundation for Open Access Statistics 2020-11-01
Series:Journal of Statistical Software
Subjects:
hcl
rgb
hue
r
Online Access:https://www.jstatsoft.org/index.php/jss/article/view/3718
id doaj-b70547f35265413ab3d0b8d363c81d4f
record_format Article
spelling doaj-b70547f35265413ab3d0b8d363c81d4f2021-05-04T00:11:49ZengFoundation for Open Access StatisticsJournal of Statistical Software1548-76602020-11-0196114910.18637/jss.v096.i011396colorspace: A Toolbox for Manipulating and Assessing Colors and PalettesAchim ZeileisJason C. FisherKurt HornikRoss IhakaClaire D. McWhitePaul MurrellReto StaufferClaus O. WilkeThe 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. The shiny apps are also hosted online at http://hclwizard.org/.https://www.jstatsoft.org/index.php/jss/article/view/3718colorpalettehclrgbhuecolor vision deficiencyr
collection DOAJ
language English
format Article
sources DOAJ
author Achim Zeileis
Jason C. Fisher
Kurt Hornik
Ross Ihaka
Claire D. McWhite
Paul Murrell
Reto Stauffer
Claus O. Wilke
spellingShingle Achim Zeileis
Jason C. Fisher
Kurt Hornik
Ross Ihaka
Claire D. McWhite
Paul Murrell
Reto Stauffer
Claus O. Wilke
colorspace: A Toolbox for Manipulating and Assessing Colors and Palettes
Journal of Statistical Software
color
palette
hcl
rgb
hue
color vision deficiency
r
author_facet Achim Zeileis
Jason C. Fisher
Kurt Hornik
Ross Ihaka
Claire D. McWhite
Paul Murrell
Reto Stauffer
Claus O. Wilke
author_sort Achim Zeileis
title colorspace: A Toolbox for Manipulating and Assessing Colors and Palettes
title_short colorspace: A Toolbox for Manipulating and Assessing Colors and Palettes
title_full colorspace: A Toolbox for Manipulating and Assessing Colors and Palettes
title_fullStr colorspace: A Toolbox for Manipulating and Assessing Colors and Palettes
title_full_unstemmed colorspace: A Toolbox for Manipulating and Assessing Colors and Palettes
title_sort colorspace: a toolbox for manipulating and assessing colors and palettes
publisher Foundation for Open Access Statistics
series Journal of Statistical Software
issn 1548-7660
publishDate 2020-11-01
description 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. The shiny apps are also hosted online at http://hclwizard.org/.
topic color
palette
hcl
rgb
hue
color vision deficiency
r
url https://www.jstatsoft.org/index.php/jss/article/view/3718
work_keys_str_mv AT achimzeileis colorspaceatoolboxformanipulatingandassessingcolorsandpalettes
AT jasoncfisher colorspaceatoolboxformanipulatingandassessingcolorsandpalettes
AT kurthornik colorspaceatoolboxformanipulatingandassessingcolorsandpalettes
AT rossihaka colorspaceatoolboxformanipulatingandassessingcolorsandpalettes
AT clairedmcwhite colorspaceatoolboxformanipulatingandassessingcolorsandpalettes
AT paulmurrell colorspaceatoolboxformanipulatingandassessingcolorsandpalettes
AT retostauffer colorspaceatoolboxformanipulatingandassessingcolorsandpalettes
AT clausowilke colorspaceatoolboxformanipulatingandassessingcolorsandpalettes
_version_ 1721482109205348352