Package: colorspace 2.1-2

Achim Zeileis

colorspace: A Toolbox for Manipulating and Assessing Colors and Palettes

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

Authors:Ross Ihaka [aut], Paul Murrell [aut], Kurt Hornik [aut], Jason C. Fisher [aut], Reto Stauffer [aut], Claus O. Wilke [aut], Claire D. McWhite [aut], Achim Zeileis [aut, cre]

colorspace_2.1-2.tar.gz
colorspace_2.1-2.zip(r-4.5)colorspace_2.1-2.zip(r-4.4)colorspace_2.1-2.zip(r-4.3)
colorspace_2.1-2.tgz(r-4.4-x86_64)colorspace_2.1-2.tgz(r-4.4-arm64)colorspace_2.1-2.tgz(r-4.3-x86_64)colorspace_2.1-2.tgz(r-4.3-arm64)
colorspace_2.1-2.tar.gz(r-4.5-noble)colorspace_2.1-2.tar.gz(r-4.4-noble)
colorspace_2.1-2.tgz(r-4.4-emscripten)colorspace_2.1-2.tgz(r-4.3-emscripten)
colorspace.pdf |colorspace.html
colorspace/json (API)
NEWS

# Install 'colorspace' in R:
install.packages('colorspace', repos = c('https://r-forge.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://r-forge.r-project.org/projects/colorspace

Datasets:
  • USSouthPolygon - Polygon for County Map of US South States: Alabama, Georgia, and South Carolina
  • max_chroma_table - Compute Maximum Chroma for Given Hue and Luminance in HCL

On CRAN:

16.31 score 7.8k packages 7.1k scripts 1.0M downloads 31 mentions 94 exports 0 dependencies

Last updated 22 days agofrom:5002cbe909. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 16 2024
R-4.5-win-x86_64OKOct 16 2024
R-4.5-linux-x86_64OKOct 16 2024
R-4.4-win-x86_64OKOct 16 2024
R-4.4-mac-x86_64OKOct 16 2024
R-4.4-mac-aarch64OKOct 16 2024
R-4.3-win-x86_64OKOct 16 2024
R-4.3-mac-x86_64OKOct 16 2024
R-4.3-mac-aarch64OKOct 16 2024

Exports:adjust_transparencychoose_colorchoose_palettecontrast_ratiocoordscvd_emulatordarkendemoplotdesaturatedeutandeutanomaly_cvddiverge_hcldiverge_hsvdivergex_hcldiverging_hcldiverging_hsvdivergingx_hcldivergingx_palettesextract_transparencyhcl_color_pickerhcl_paletteshcl_wizardhclcolorpickerhclplothclwizardheat_hclhexhex2RGBHLSHSVinterpolate_cvd_transformLABlightenLUVmax_chromamixcolorplotpolarLABpolarLUVprotanprotanomaly_cvdqualitative_hclrainbow_hclreadhexreadRGBRGBscale_color_binned_divergingscale_color_binned_divergingxscale_color_binned_qualitativescale_color_binned_sequentialscale_color_continuous_divergingscale_color_continuous_divergingxscale_color_continuous_qualitativescale_color_continuous_sequentialscale_color_discrete_divergingscale_color_discrete_divergingxscale_color_discrete_qualitativescale_color_discrete_sequentialscale_colour_binned_divergingscale_colour_binned_divergingxscale_colour_binned_qualitativescale_colour_binned_sequentialscale_colour_continuous_divergingscale_colour_continuous_divergingxscale_colour_continuous_qualitativescale_colour_continuous_sequentialscale_colour_discrete_divergingscale_colour_discrete_divergingxscale_colour_discrete_qualitativescale_colour_discrete_sequentialscale_fill_binned_divergingscale_fill_binned_divergingxscale_fill_binned_qualitativescale_fill_binned_sequentialscale_fill_continuous_divergingscale_fill_continuous_divergingxscale_fill_continuous_qualitativescale_fill_continuous_sequentialscale_fill_discrete_divergingscale_fill_discrete_divergingxscale_fill_discrete_qualitativescale_fill_discrete_sequentialsequential_hclshowsimulate_cvdspecplotsRGBswatchplotterrain_hcltritantritanomaly_cvdwhitepointwritehexXYZ

Dependencies:

colorspace: A Toolbox for Manipulating and Assessing Colors and Palettes

Rendered fromcolorspace.Rmdusingknitr::rmarkdownon Oct 16 2024.

Last update: 2024-07-26
Started: 2018-10-06

HCL-Based Color Palettes in R

Rendered fromhcl-colors.Rnwusingutils::Sweaveon Oct 16 2024.

Last update: 2021-05-04
Started: 2013-01-23

Readme and manuals

Help Manual

Help pageTopics
Adjust or Extract Transparency of Colorsadjust_transparency extract_transparency
Graphical User Interface for Choosing HCL Color Paletteschoose_palette hclwizard hcl_wizard
Class "color"coerce,color,HLS-method coerce,color,HSV-method coerce,color,LAB-method coerce,color,LUV-method coerce,color,polarLAB-method coerce,color,polarLUV-method coerce,color,RGB-method coerce,color,sRGB-method coerce,color,XYZ-method color-class coords,color-method HLS-class HSV-class LAB-class LUV-class plot,color-method polarLAB-class polarLUV-class RGB-class show,color-method sRGB-class XYZ-class [,color-method
W3C Contrast Ratiocontrast_ratio
Extract the Numerical Coordinates of a Colorcoords
Color Vision Deficiency (CVD) Conversion Tablescvd deutanomaly_cvd protanomaly_cvd tritanomaly_cvd
Graphical User Interface to Check Images for Color Constraintscvd_emulator
Convert Colors of an Imagecvd_image
Color Palette Demonstration Plotdemoplot
Desaturate Colors by Chroma Removal in HCL Spacedesaturate
(More) Flexible Diverging HCL Palettesdivergex_hcl divergingx_hcl divergingx_palettes
Graphical User Interface to Pick Colors in HCL Spacechoose_color hclcolorpicker hcl_color_picker
HCL Color Palettesdiverge_hcl diverging_hcl hcl_palettes plot.hcl_palettes print.hcl_palettes qualitative_hcl sequential_hcl summary.hcl_palettes
Palette Plot in HCL Spacehclplot
Convert Colors to Hexadecimal Stringshex
Convert Hexadecimal Color Specifications to sRGB Objectshex2RGB
Create HLS ColorsHLS
Create HSV ColorsHSV
Create LAB ColorsLAB
Algorithmically Lighten or Darken Colorsdarken lighten
Create LUV ColorsLUV
Compute Maximum Chroma for Given Hue and Luminance in HCLmax_chroma max_chroma_table
Compute the Convex Combination of Two Colorsmixcolor
Create polarLAB ColorspolarLAB
Create polarLUV (HCL) ColorsHCL polarLUV
HCL (and HSV) Color Palettes Corresponding to Base R Palettesdiverge_hsv diverging_hsv heat_hcl rainbow_hcl terrain_hcl
Read Hexadecimal Color Descriptionsreadhex
Read RGB Color DescriptionsreadRGB
Create RGB ColorsRGB
HCL-Based Binned Diverging Color Scales for ggplot2scale_color_binned_diverging scale_colour_binned_diverging scale_fill_binned_diverging
HCL-Based Binned Flexible Diverging Scales for ggplot2scale_color_binned_divergingx scale_colour_binned_divergingx scale_fill_binned_divergingx
HCL-Based Binned Qualitative Color Scales for ggplot2scale_color_binned_qualitative scale_colour_binned_qualitative scale_fill_binned_qualitative
HCL-Based Binned Sequential Color Scales for ggplot2scale_color_binned_sequential scale_colour_binned_sequential scale_fill_binned_sequential
HCL-Based Continuous Diverging Color Scales for ggplot2scale_color_continuous_diverging scale_colour_continuous_diverging scale_fill_continuous_diverging
HCL-Based Continuous Flexible Diverging Scales for ggplot2scale_color_continuous_divergingx scale_colour_continuous_divergingx scale_fill_continuous_divergingx
HCL-Based Continuous Qualitative Color Scales for ggplot2scale_color_continuous_qualitative scale_colour_continuous_qualitative scale_fill_continuous_qualitative
HCL-Based Continuous Sequential Color Scales for ggplot2scale_color_continuous_sequential scale_colour_continuous_sequential scale_fill_continuous_sequential
HCL-Based Discrete Diverging Color Scales for ggplot2scale_color_discrete_diverging scale_colour_discrete_diverging scale_fill_discrete_diverging
HCL-Based Discrete Flexible Diverging Scales for ggplot2scale_color_discrete_divergingx scale_colour_discrete_divergingx scale_fill_discrete_divergingx
HCL-Based Discrete Qualitative Color Scales for ggplot2scale_color_discrete_qualitative scale_colour_discrete_qualitative scale_fill_discrete_qualitative
HCL-Based Discrete Sequential Color Scales for ggplot2scale_color_discrete_sequential scale_colour_discrete_sequential scale_fill_discrete_sequential
Simulate Color Vision Deficiencydeutan interpolate_cvd_transform protan simulate_cvd tritan
Color Spectrum Plotspecplot
Create sRGB ColorssRGB
Palette Swatch Plotswatchplot
Polygon for County Map of US South States: Alabama, Georgia, and South CarolinaUSSouthPolygon
Access or Modify the Whitepointwhitepoint
Write Hexadecimal Color Descriptionswritehex
Create XYZ ColorsXYZ