A Toolbox for Manipulating and Assessing Colors and Palettes
Adjust or Extract Transparency of Colors
Graphical User Interface for Choosing HCL Color Palettes
Class "color"
W3C Contrast Ratio
Extract the Numerical Coordinates of a Color
Graphical User Interface to Check Images for Color Constraints
Convert Colors of an Image
Color Vision Deficiency (CVD) Conversion Tables
Color Palette Demonstration Plot
Desaturate Colors by Chroma Removal in HCL Space
(More) Flexible Diverging HCL Palettes
Graphical User Interface to Pick Colors in HCL Space
HCL Color Palettes
Palette Plot in HCL Space
Convert Colors to Hexadecimal Strings
Convert Hexadecimal Color Specifications to sRGB Objects
Create HLS Colors
Create HSV Colors
Create LAB Colors
Algorithmically Lighten or Darken Colors
Create LUV Colors
Compute Maximum Chroma for Given Hue and Luminance in HCL
Compute the Convex Combination of Two Colors
Create polarLAB Colors
Create polarLUV (HCL) Colors
HCL (and HSV) Color Palettes Corresponding to Base R Palettes
Read Hexadecimal Color Descriptions
Read RGB Color Descriptions
Create RGB Colors
HCL-Based Binned Diverging Color Scales for ggplot2
HCL-Based Binned Flexible Diverging Scales for ggplot2
HCL-Based Binned Qualitative Color Scales for ggplot2
HCL-Based Binned Sequential Color Scales for ggplot2
HCL-Based Continuous Diverging Color Scales for ggplot2
HCL-Based Continuous Flexible Diverging Scales for ggplot2
HCL-Based Continuous Qualitative Color Scales for ggplot2
HCL-Based Continuous Sequential Color Scales for ggplot2
HCL-Based Discrete Diverging Color Scales for ggplot2
HCL-Based Discrete Flexible Diverging Scales for ggplot2
HCL-Based Discrete Qualitative Color Scales for ggplot2
HCL-Based Discrete Sequential Color Scales for ggplot2
Simulate Color Vision Deficiency
Color Spectrum Plot
Create sRGB Colors
Palette Swatch Plot
Access or Modify the Whitepoint
Write Hexadecimal Color Descriptions
Create XYZ Colors
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>).
Useful links