Package: colorspace 2.1-2
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:
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')) |
Bug tracker:https://r-forge.r-project.org/projects/colorspace
- 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
Last updated 1 months agofrom:5002cbe909. Checks:OK: 9. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 15 2024 |
R-4.5-win-x86_64 | OK | Nov 15 2024 |
R-4.5-linux-x86_64 | OK | Nov 15 2024 |
R-4.4-win-x86_64 | OK | Nov 15 2024 |
R-4.4-mac-x86_64 | OK | Nov 15 2024 |
R-4.4-mac-aarch64 | OK | Nov 15 2024 |
R-4.3-win-x86_64 | OK | Nov 15 2024 |
R-4.3-mac-x86_64 | OK | Nov 15 2024 |
R-4.3-mac-aarch64 | OK | Nov 15 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.Rmd
usingknitr::rmarkdown
on Nov 15 2024.Last update: 2024-07-26
Started: 2018-10-06
HCL-Based Color Palettes in R
Rendered fromhcl-colors.Rnw
usingutils::Sweave
on Nov 15 2024.Last update: 2021-05-04
Started: 2013-01-23
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Adjust or Extract Transparency of Colors | adjust_transparency extract_transparency |
Graphical User Interface for Choosing HCL Color Palettes | choose_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 Ratio | contrast_ratio |
Extract the Numerical Coordinates of a Color | coords |
Color Vision Deficiency (CVD) Conversion Tables | cvd deutanomaly_cvd protanomaly_cvd tritanomaly_cvd |
Graphical User Interface to Check Images for Color Constraints | cvd_emulator |
Convert Colors of an Image | cvd_image |
Color Palette Demonstration Plot | demoplot |
Desaturate Colors by Chroma Removal in HCL Space | desaturate |
(More) Flexible Diverging HCL Palettes | divergex_hcl divergingx_hcl divergingx_palettes |
Graphical User Interface to Pick Colors in HCL Space | choose_color hclcolorpicker hcl_color_picker |
HCL Color Palettes | diverge_hcl diverging_hcl hcl_palettes plot.hcl_palettes print.hcl_palettes qualitative_hcl sequential_hcl summary.hcl_palettes |
Palette Plot in HCL Space | hclplot |
Convert Colors to Hexadecimal Strings | hex |
Convert Hexadecimal Color Specifications to sRGB Objects | hex2RGB |
Create HLS Colors | HLS |
Create HSV Colors | HSV |
Create LAB Colors | LAB |
Algorithmically Lighten or Darken Colors | darken lighten |
Create LUV Colors | LUV |
Compute Maximum Chroma for Given Hue and Luminance in HCL | max_chroma max_chroma_table |
Compute the Convex Combination of Two Colors | mixcolor |
Create polarLAB Colors | polarLAB |
Create polarLUV (HCL) Colors | HCL polarLUV |
HCL (and HSV) Color Palettes Corresponding to Base R Palettes | diverge_hsv diverging_hsv heat_hcl rainbow_hcl terrain_hcl |
Read Hexadecimal Color Descriptions | readhex |
Read RGB Color Descriptions | readRGB |
Create RGB Colors | RGB |
HCL-Based Binned Diverging Color Scales for ggplot2 | scale_color_binned_diverging scale_colour_binned_diverging scale_fill_binned_diverging |
HCL-Based Binned Flexible Diverging Scales for ggplot2 | scale_color_binned_divergingx scale_colour_binned_divergingx scale_fill_binned_divergingx |
HCL-Based Binned Qualitative Color Scales for ggplot2 | scale_color_binned_qualitative scale_colour_binned_qualitative scale_fill_binned_qualitative |
HCL-Based Binned Sequential Color Scales for ggplot2 | scale_color_binned_sequential scale_colour_binned_sequential scale_fill_binned_sequential |
HCL-Based Continuous Diverging Color Scales for ggplot2 | scale_color_continuous_diverging scale_colour_continuous_diverging scale_fill_continuous_diverging |
HCL-Based Continuous Flexible Diverging Scales for ggplot2 | scale_color_continuous_divergingx scale_colour_continuous_divergingx scale_fill_continuous_divergingx |
HCL-Based Continuous Qualitative Color Scales for ggplot2 | scale_color_continuous_qualitative scale_colour_continuous_qualitative scale_fill_continuous_qualitative |
HCL-Based Continuous Sequential Color Scales for ggplot2 | scale_color_continuous_sequential scale_colour_continuous_sequential scale_fill_continuous_sequential |
HCL-Based Discrete Diverging Color Scales for ggplot2 | scale_color_discrete_diverging scale_colour_discrete_diverging scale_fill_discrete_diverging |
HCL-Based Discrete Flexible Diverging Scales for ggplot2 | scale_color_discrete_divergingx scale_colour_discrete_divergingx scale_fill_discrete_divergingx |
HCL-Based Discrete Qualitative Color Scales for ggplot2 | scale_color_discrete_qualitative scale_colour_discrete_qualitative scale_fill_discrete_qualitative |
HCL-Based Discrete Sequential Color Scales for ggplot2 | scale_color_discrete_sequential scale_colour_discrete_sequential scale_fill_discrete_sequential |
Simulate Color Vision Deficiency | deutan interpolate_cvd_transform protan simulate_cvd tritan |
Color Spectrum Plot | specplot |
Create sRGB Colors | sRGB |
Palette Swatch Plot | swatchplot |
Polygon for County Map of US South States: Alabama, Georgia, and South Carolina | USSouthPolygon |
Access or Modify the Whitepoint | whitepoint |
Write Hexadecimal Color Descriptions | writehex |
Create XYZ Colors | XYZ |