Skip to content

colorspace

A Toolbox for Manipulating and Assessing Colors and Palettes

v2.1-2 · Sep 22, 2025 · BSD_3_clause + file LICENSE

Description

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

Downloads

515.8K

Last 30 days

122nd

1.6M

Last 90 days

5.9M

Last year

Trend: -7% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (239)

Dependency Network

Dependencies Reverse dependencies NonParRolCor R2BayesX RolWinMulCor VIM W2CWM2C bamlss cabootcrs grpCox mixAK prefmod smacof APCtools BayesX BioRssay CNSigs +224 more reverse deps colorspace

Version History

new 2.1-2 Mar 10, 2026
updated 2.1-2 ← 2.1-1 diff Sep 21, 2025
updated 2.1-1 ← 2.1-0 diff Jul 25, 2024
updated 2.1-0 ← 2.0-3 diff Jan 22, 2023
updated 2.0-3 ← 2.0-2 diff Feb 20, 2022
updated 2.0-2 ← 2.0-1 diff Jun 23, 2021
updated 2.0-1 ← 2.0-0 diff May 3, 2021
updated 2.0-0 ← 1.4-1 diff Nov 10, 2020
updated 1.4-1 ← 1.4-0 diff Mar 17, 2019
updated 1.4-0 ← 1.3-2 diff Jan 12, 2019
updated 1.3-2 ← 1.3-1 diff Dec 13, 2016
updated 1.3-1 ← 1.3-0 diff Nov 17, 2016
updated 1.3-0 ← 1.2-7 diff Nov 9, 2016
updated 1.2-7 ← 1.2-6 diff Oct 10, 2016
updated 1.2-6 ← 1.2-5 diff Mar 10, 2015
updated 1.2-5 ← 1.2-4 diff Mar 2, 2015
updated 1.2-4 ← 1.2-3 diff Sep 29, 2013
updated 1.2-3 ← 1.2-2 diff Sep 15, 2013
updated 1.2-2 ← 1.2-1 diff Apr 10, 2013
updated 1.2-1 ← 1.2-0 diff Jan 23, 2013