Skip to content

colorspace

2.1-4Package record

A Toolbox for Manipulating and Assessing Colors and Palettes

160packages dependsuggested by 92
6.1Mdownloads / year
15.2%test coverage
13/13flavors OK

Overview

About

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

Changes in 2.1-4

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 3.9 min · r-devel-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 2.1-4
READMENoVignettesYes · 2 · dynamicNEWSYes · 100% structured · mentions 2.1-4Citation fileYes · cites a publicationWebsiteYes
Cites a JSS article
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

6.1M
CRAN downloads in the past year
Rank #129 · ~16.8K/day · ~511.7K/mo
Daily download trend is not available in this view yet.
491.7K30 days
1.4M90 days
6.1M1 year
Compare downloads with other packages →
Also on78.5K r2u156 autocran1.8M conda_forge23.9K c2d4u

Repository

PracticesBeta

Repository codeberg.org/zeileis/colorspace is linked, but repository-practices checks have not run for it yet. Checks are GitHub-only for now.

How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
17 external dependencies (excludes base and recommended)

Installing colorspace adds no packages beyond those that come with R.

Depends (2)
R >= 3.0.0methods
Imports (3)
graphicsgrDevicesstats
LinkingTo (0)
none
Enhances (0)
none

Datasets

People & History

People (8)
Author, Maintainer since 1.2-0 (2012) · added in 0.97
Author · added in 0.97
Author · added in 0.97
Author · added in 1.3-0

Previously maintained by Ross Ihaka (0.9 to 1.1-1).

Listed in earlier versions (3)
Show 3 peopleHide 3 people
Fisher
no longer listed · 1.2-0 to 2.1-4
McWhite
no longer listed · 1.4-0 to 2.1-4
Wilke
no longer listed · 1.4-0 to 2.1-4
Releases (29)

Pick two releases to compare their code metrics.

  • 2.1-4Latest
    record
    2026-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-3
    record
    2026-07-12 · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 2.1-2
    record
    2025-09-22 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 2.1-1
    record
    2024-07-26 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 2.1-0
    record
    2023-01-23 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 2.0-3
    record
    2022-02-21 · diff ↗
  • 2.0-2
    record
    2021-06-24 · diff ↗ ·
    added 1 export
    contrast_ratio
  • R
    R 4.1.0 released · 2021-05-18
  • 2.0-1
    record
    2021-05-04 · diff ↗ ·
    added 1 export
    extract_transparency
  • 2.0-0
    record
    2020-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
  • R
    R 4.0.0 released · 2020-04-24
Show 43 earlier eventsHide 43 earlier events
  • R
    R 3.6.0 released · 2019-04-26
  • 1.4-1
    record
    2019-03-18 · diff ↗
  • 1.4-0
    record
    2019-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
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
  • 1.3-2
    record
    2016-12-14 · diff ↗
  • 1.3-1
    record
    2016-11-18 · diff ↗
  • 1.3-0
    record
    2016-11-10 · diff ↗ ·
    added 2 exports
    specplot, hclwizard
  • 1.2-7
    record
    2016-10-11 · diff ↗
  • R
    R 3.3.0 released · 2016-05-03
  • R
    R 3.2.0 released · 2015-04-16
  • 1.2-6
    record
    2015-03-11 · diff ↗
  • 1.2-5
    record
    2015-03-03 · diff ↗
  • R
    R 3.1.0 released · 2014-04-10
  • 1.2-4
    record
    2013-09-30 · diff ↗
  • 1.2-3
    record
    2013-09-16 · diff ↗
  • 1.2-2
    record
    2013-04-11 · diff ↗
  • R
    R 3.0.0 released · 2013-04-03
  • 1.2-1
    record
    2013-01-24 · diff ↗
  • 1.2-0
    record
    2012-10-24 · diff ↗ ·
    added 1 export
    choose_palette
  • R
    R 2.15.0 released · 2012-03-30
  • 1.1-1
    record
    2012-01-13 · diff ↗ ·
    added 1 export
    desaturate
  • R
    R 2.14.0 released · 2011-10-31
  • 1.1-0
    record
    2011-05-16 · diff ↗ ·
    added 1 export
    sRGB
  • R
    R 2.13.0 released · 2011-04-13
  • R
    R 2.12.0 released · 2010-10-15
  • R
    R 2.11.0 released · 2010-04-22
  • R
    R 2.10.0 released · 2009-10-26
  • 1.0-1
    record
    2009-04-24 · diff ↗
  • R
    R 2.9.0 released · 2009-04-17
  • 1.0-0
    record
    2008-11-21 · diff ↗
  • 0.97
    record
    2008-10-25 · diff ↗ ·
    added 7 exports
    HLS, rainbow_hcl, diverge_hcl, diverge_hsv, heat_hcl, sequential_hcl, terrain_hcl
  • R
    R 2.8.0 released · 2008-10-20
  • R
    R 2.7.0 released · 2008-04-22
  • R
    R 2.6.0 released · 2007-10-03
  • R
    R 2.5.0 released · 2007-04-24
  • 0.95
    record
    2006-11-16 · diff ↗ ·
    removed 1 export
    hcl
  • R
    R 2.4.0 released · 2006-10-03
  • R
    R 2.3.0 released · 2006-04-24
  • R
    R 2.2.0 released · 2005-10-06
  • R
    R 2.1.0 released · 2005-04-18
  • 0.9
    record
    2005-01-20
  • R
    R 2.0.0 released · 2004-10-04
Across CRAN, the median accepted release of the past year spent 15 hours in the queue, 90% under 11 days.How queue time is measured

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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for colorspace version 2.1-4 [Data set]. HJJB, LLC. Data release v2026-10-19. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy