colorspace
A Toolbox for Manipulating and Assessing Colors and Palettes
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
441.7K
Last 30 days
139th
1.5M
Last 90 days
5.8M
Last year
Trend: -13.6% (30d vs prior 30d)
3.6K
Last 30 days
13.7K
Last 90 days
37.4K
Last year
Trend: -27% (30d vs prior 30d)
25
Last 7 days
64
Last 30 days
2
All-time
⚠ Shared name: this package is also shipped elsewhere on openSUSE, so this count is not exclusive to autoCRAN (it is an upper bound).
CRAN Check Status
Show all 13 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 | NOTE |
| r-devel-linux-x86_64-fedora-gcc | NOTE |
| 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 details (2 non-OK)
running R code from vignettes
‘hcl-colors.Rnw’ using ‘UTF-8’... NOTE differences from ‘hcl-colors.Rout.save’ 151,152d150 < Warning in filled.contour(xr, yr, matrix(as.numeric(preds), nrow = length(xr), : < 'col' has length 26 but should have length 25 (= length(levels) - 1, with length(levels) = 26); colors will be recycled or ignored
running R code from vignettes
‘hcl-colors.Rnw’ using ‘UTF-8’... NOTE differences from ‘hcl-colors.Rout.save’ 151,152d150 < Warning in filled.contour(xr, yr, matrix(as.numeric(preds), nrow = length(xr), : < 'col' has length 26 but should have length 25 (= length(levels) - 1, with length(levels) = 26); colors will be recycled or ignored
Check History
NOTE 11 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 30, 2026
running R code from vignettes
‘hcl-colors.Rnw’ using ‘UTF-8’... NOTE differences from ‘hcl-colors.Rout.save’ 151,152d150 < Warning in filled.contour(xr, yr, matrix(as.numeric(preds), nrow = length(xr), : < 'col' has length 26 but should have length 25 (= length(levels) - 1, with length(levels) = 26); colors will be recycled or ignored
running R code from vignettes
‘hcl-colors.Rnw’ using ‘UTF-8’... NOTE differences from ‘hcl-colors.Rout.save’ 151,152d150 < Warning in filled.contour(xr, yr, matrix(as.numeric(preds), nrow = length(xr), : < 'col' has length 26 but should have length 25 (= length(levels) - 1, with length(levels) = 26); colors will be recycled or ignored
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 27, 2026
WARNING 12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE Jun 14, 2026
re-building of vignette outputs
Error(s) in re-building vignettes:
...
--- re-building ‘colorspace.Rmd’ using rmarkdown
--- finished re-building ‘colorspace.Rmd’
--- re-building ‘hcl-colors.Rnw’ using Sweave
Loading required package: grid
KernSmooth 2.23 loaded
Copyright M. P. W
...[truncated]...
document}
! ==> Fatal error occurred, no output PDF file produced!
--- failed re-building ‘hcl-colors.Rnw’
SUMMARY: processing the following file failed:
‘hcl-colors.Rnw’
Error: Vignette re-building failed.
Execution halted
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 11, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE May 10, 2026
whether package can be installed
Installation failed. See 'd:/Rcompile/CRANpkg/local/4.7/colorspace.Rcheck/00install.out' for details.
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 2, 2026
ERROR 11 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 25, 2026
re-building of vignette outputs
Error(s) in re-building vignettes:
--- re-building ‘colorspace.Rmd’ using rmarkdown
--- finished re-building ‘colorspace.Rmd’
--- re-building ‘hcl-colors.Rnw’ using Sweave
Loading required package: grid
Error: processing vignette 'hcl-colors.Rnw' f
...[truncated]...
bel = preliminaries)
Error in library("mvtnorm") : there is no package called ‘mvtnorm’
--- failed re-building ‘hcl-colors.Rnw’
SUMMARY: processing the following file failed:
‘hcl-colors.Rnw’
Error: Vignette re-building failed.
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 24, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 22, 2026
whether package can be installed
Installation failed. See 'd:/Rcompile/CRANpkg/local/4.6/colorspace.Rcheck/00install.out' for details.