A Toolbox for Manipulating and Assessing Colors and Palettes
Overview
Carries out mapping between assorted color spaces including RGB, HSV, HLS, CIEXYZ, CIELUV, HCL (polar CIELUV), CIELAB, and polar CIELAB. Qualitative, sequential, and diverging color palettes based on HCL colors are provided along with corresponding ggplot2 color scales. Color palette choice is aided by an interactive app (with either a Tcl/Tk or a shiny graphical user interface) and shiny apps with an HCL color picker and a color vision deficiency emulator. Plotting functions for displaying and assessing palettes include color swatches, visualizations of the HCL space, and trajectories in HCL and/or RGB spectrum. Color manipulation functions include: desaturation, lightening/darkening, mixing, and simulation of color vision deficiencies (deutanomaly, protanomaly, tritanomaly). Details can be found on the project web page at https://colorspace.R-Forge.R-project.org/ and in the accompanying scientific paper: Zeileis et al. (2020, Journal of Statistical Software, doi:10.18637/jss.v096.i01).
- Code repository changed from R-Forge to Codeberg at: <https://codeberg.org/zeileis/colorspace/>
- The URL for the package web page is now: <https://zeileis.codeberg.page/colorspace/>
- Fix of the argument checks in the internal
.colorspace_set_info()function (provided by Maximilian Scholz).
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-07-15
- NOTE11 OK, 2 NOTE2026-06-30
- OK13 OK2026-06-27
Show 8 earlier changesHide 8 earlier changes
- WARNING12 OK, 1 WARNING2026-06-14
- OK13 OK2026-05-11
- ERROR12 OK, 1 ERROR2026-05-10
- OK13 OK2026-05-02
- ERROR11 OK, 1 ERROR2026-04-25
- OK14 OK2026-04-24
- ERROR13 OK, 1 ERROR2026-04-22
- OK14 OK2026-03-10
Documentation
- Help pages
- 49
- Examples that run
- 93%43 run in a plain check (1 of them under a condition) · 3 never run
- Exported functions with examples
- 96%
- Documented parameters
- 73%
- Return-value docs
- 70%
- Help pages citing references
- 33%
Also includes 4 demo scripts (run with demo())
Downloads
Repository
Repository codeberg.org/zeileis/colorspace is linked, but repository-practices checks have not run for it yet. Checks are GitHub-only for now.
Dependencies
Installing colorspace adds no packages beyond those that come with R.
Show the 48 most downloaded dependentsHide the 48 most downloaded dependents
and 112 more dependents and 92 packages that suggest it on CRAN ↗
Code & Tests
Datasets
People & History
Previously maintained by Ross Ihaka (0.9 to 1.1-1).
Show 3 peopleHide 3 people
Pick two releases to compare their code metrics.
- 2.1-4Latest2026-10-08 · current release · diff ↗ ·
listed once in CRAN's queue
Seen in one reading of CRAN's incoming queue, at 2026-10-08 06:53 UTC, so it stayed less than the time between readings. - 2.1-32026-07-12 · diff ↗
- RR 4.6.0 released · 2026-04-24
- 2.1-22025-09-22 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 2.1-12024-07-26 · diff ↗
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 2.1-02023-01-23 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 2.0-32022-02-21 · diff ↗
- 2.0-2
- RR 4.1.0 released · 2021-05-18
- 2.0-1
- 2.0-02020-11-11 · diff ↗ ·
added 13 exports
adjust_transparency, scale_color_binned_diverging, scale_color_binned_divergingx, scale_color_binned_qualitative, scale_color_binned_sequential, scale_colour_binned_diverging, scale_colour_binned_divergingx, scale_colour_binned_qualitative, scale_colour_binned_sequential, scale_fill_binned_diverging, scale_fill_binned_divergingx, scale_fill_binned_qualitative, scale_fill_binned_sequential - RR 4.0.0 released · 2020-04-24
Show 43 earlier eventsHide 43 earlier events
- RR 3.6.0 released · 2019-04-26
- 1.4-12019-03-18 · diff ↗
- 1.4-02019-01-13 · diff ↗ ·
added 51 exports
choose_color, cvd_emulator, darken, demoplot, deutan, deutanomaly_cvd, divergex_hcl, diverging_hcl, diverging_hsv, divergingx_hcl, divergingx_palettes, hcl_color_picker, hcl_palettes, hcl_wizard, hclcolorpicker, hclplot, interpolate_cvd_transform, lighten, max_chroma, protan, protanomaly_cvd, qualitative_hcl, scale_color_continuous_diverging, scale_color_continuous_divergingx, scale_color_continuous_qualitative, scale_color_continuous_sequential, scale_color_discrete_diverging, scale_color_discrete_divergingx, scale_color_discrete_qualitative, scale_color_discrete_sequential and 21 more - RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- 1.3-22016-12-14 · diff ↗
- 1.3-12016-11-18 · diff ↗
- 1.3-0
- 1.2-72016-10-11 · diff ↗
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- 1.2-62015-03-11 · diff ↗
- 1.2-52015-03-03 · diff ↗
- RR 3.1.0 released · 2014-04-10
- 1.2-42013-09-30 · diff ↗
- 1.2-32013-09-16 · diff ↗
- 1.2-22013-04-11 · diff ↗
- RR 3.0.0 released · 2013-04-03
- 1.2-12013-01-24 · diff ↗
- 1.2-0
- RR 2.15.0 released · 2012-03-30
- 1.1-1
- RR 2.14.0 released · 2011-10-31
- 1.1-0
- RR 2.13.0 released · 2011-04-13
- RR 2.12.0 released · 2010-10-15
- RR 2.11.0 released · 2010-04-22
- RR 2.10.0 released · 2009-10-26
- 1.0-12009-04-24 · diff ↗
- RR 2.9.0 released · 2009-04-17
- 1.0-02008-11-21 · diff ↗
- 0.972008-10-25 · diff ↗ ·
added 7 exports
HLS, rainbow_hcl, diverge_hcl, diverge_hsv, heat_hcl, sequential_hcl, terrain_hcl - RR 2.8.0 released · 2008-10-20
- RR 2.7.0 released · 2008-04-22
- RR 2.6.0 released · 2007-10-03
- RR 2.5.0 released · 2007-04-24
- 0.95
- RR 2.4.0 released · 2006-10-03
- RR 2.3.0 released · 2006-04-24
- RR 2.2.0 released · 2005-10-06
- RR 2.1.0 released · 2005-04-18
- 0.92005-01-20
- RR 2.0.0 released · 2004-10-04
Package metadata
- First published
- 2005-01-20
- Total releases
- 29 / 21 yrs
- License
- BSD_3_clause + file LICENSE OSI
- Minimum R
- ≥ 3.0.0
- Bundled data
- 93 KB / 2 files
- Download size
- 2.0 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("colorspace")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.18637/jss.v096.i01, 10.1016/j.csda.2008.11.033, 10.1175/bams-d-13-00155.1.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-19, which the citation names so these numbers can be found later. More on citing and the projects behind them.