Colour Schemes for Scientific Data Visualization
Overview
Color schemes ready for each type of data (qualitative, diverging or sequential), with colors that are distinct for all people, including color-blind readers. This package provides an implementation of Paul Tol (2018) and Fabio Crameri (2018) doi:10.5194/gmd-11-2541-2018 color schemes for use with 'graphics' or 'ggplot2'. It provides tools to simulate color-blindness and to test how well the colors of any palette are identifiable. Several scientific thematic schemes (geologic timescale, land cover, FAO soils, etc.) are also implemented.
Enhancements
- Upgrade to Scientific Colours Maps v8.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK12 OK2026-04-25
Show 1 earlier changeHide 1 earlier change
- NOTE13 OK, 1 NOTE2026-03-10
Documentation
- Help pages
- 82 (6 internal)includes a package overview page
- Examples that run
- 100%76 run in a plain check (3 of them under a condition)
- Exported functions with examples
- 99%
- Documented parameters
- 98%
- Return-value docs
- 99%
- Help pages citing references
- 80%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- GitHub only
- Median days to close, 50 most recently updated closed PRs
- GitHub only
Repository codeberg.org/tesselle/khroma is linked, but repository-practices checks have not run for it yet. Checks are GitHub-only for now.
Dependencies
Installing khroma adds no packages beyond those that come with R.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.17.0Latest2025-09-29 · current release · diff ↗ ·
added 30 exports
scale_color_glasgow, scale_color_lipari, scale_color_managua, scale_color_navia, scale_color_naviaW, scale_colour_glasgow, scale_colour_lipari, scale_colour_managua, scale_colour_navia, scale_colour_naviaW, scale_edge_color_glasgow, scale_edge_color_lipari, scale_edge_color_managua, scale_edge_color_navia, scale_edge_color_naviaW, scale_edge_colour_glasgow, scale_edge_colour_lipari, scale_edge_colour_managua, scale_edge_colour_navia, scale_edge_colour_naviaW, scale_edge_fill_glasgow, scale_edge_fill_lipari, scale_edge_fill_managua, scale_edge_fill_navia, scale_edge_fill_naviaW, scale_fill_glasgow, scale_fill_lipari, scale_fill_managua, scale_fill_navia, scale_fill_naviaW - RR 4.5.0 released · 2025-04-11
- 1.16.02025-02-25 · diff ↗ ·
removed 5 exports
convert, ramp, scale_color_logical, scale_colour_logical, scale_fill_logical - 1.15.0
- 1.14.02024-08-26 · diff ↗
- 1.13.02024-07-01 · diff ↗ ·
added 10 exports
change, palette_color_continuous, palette_color_discrete, palette_color_picker, palette_colour_continuous, palette_colour_discrete, palette_colour_picker, palette_line, palette_shape, palette_size_range - RR 4.4.0 released · 2024-04-24
- 1.12.02024-01-08 · diff ↗ ·
added 12 exports
scale_color_incandescent, scale_color_nightfall, scale_colour_incandescent, scale_colour_nightfall, scale_edge_color_incandescent, scale_edge_color_nightfall, scale_edge_colour_incandescent, scale_edge_colour_nightfall, scale_edge_fill_incandescent, scale_edge_fill_nightfall, scale_fill_incandescent, scale_fill_nightfall - 1.11.02023-08-21 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 1.10.02023-04-17 · diff ↗
- 1.9.02022-06-18 · diff ↗ ·
added 4 exports
ramp, scale_color_logical, scale_colour_logical, scale_fill_logical - RR 4.2.0 released · 2022-04-22
- 1.8.02022-01-20 · diff ↗ ·
removed 3 exports
scale_color_contrast, scale_colour_contrast, scale_fill_contrastadded 145 exports
plot_tiles, scale_color_picker, scale_colour_picker, scale_edge_color_BuRd, scale_edge_color_PRGn, scale_edge_color_YlOrBr, scale_edge_color_acton, scale_edge_color_bam, scale_edge_color_bamako, scale_edge_color_batlow, scale_edge_color_batlowK, scale_edge_color_batlowW, scale_edge_color_berlin, scale_edge_color_bilbao, scale_edge_color_bright, scale_edge_color_broc, scale_edge_color_buda, scale_edge_color_cork, scale_edge_color_dark, scale_edge_color_davos, scale_edge_color_devon, scale_edge_color_discreterainbow, scale_edge_color_grayC, scale_edge_color_hawaii, scale_edge_color_highcontrast, scale_edge_color_imola, scale_edge_color_iridescent, scale_edge_color_lajolla, scale_edge_color_land, scale_edge_color_lapaz and 115 more - 1.7.02021-09-02 · diff ↗ ·
added 6 exports
scale_color_highcontrast, scale_color_mediumcontrast, scale_colour_highcontrast, scale_colour_mediumcontrast, scale_fill_highcontrast, scale_fill_mediumcontrast
Show 15 earlier eventsHide 15 earlier events
- 1.6.0
- RR 4.1.0 released · 2021-05-18
- 1.5.02021-04-23 · diff ↗ ·
added 105 exports
scale_color_acton, scale_color_bam, scale_color_bamO, scale_color_bamako, scale_color_batlow, scale_color_batlowK, scale_color_batlowW, scale_color_berlin, scale_color_bilbao, scale_color_broc, scale_color_brocO, scale_color_buda, scale_color_bukavu, scale_color_cork, scale_color_corkO, scale_color_davos, scale_color_devon, scale_color_fes, scale_color_grayC, scale_color_hawaii, scale_color_imola, scale_color_lajolla, scale_color_lapaz, scale_color_lisbon, scale_color_nuuk, scale_color_oleron, scale_color_oslo, scale_color_roma, scale_color_romaO, scale_color_tofino and 75 more - 1.4.12021-03-17 · diff ↗
- 1.4.02020-10-05 · diff ↗ ·
added 6 exports
compare, plot_scheme_colorblind, plot_scheme_colourblind, scale_color_okabeito, scale_colour_okabeito, scale_fill_okabeito - RR 4.0.0 released · 2020-04-24
- 1.3.02019-10-26 · diff ↗ ·
removed 3 exports
scale_color_rainbow, scale_colour_rainbow, scale_fill_rainbow - 1.2.0
- 1.1.32019-06-05 · diff ↗ ·
added 9 exports
scale_color_dark, scale_color_discreterainbow, scale_color_pale, scale_colour_dark, scale_colour_discreterainbow, scale_colour_pale, scale_fill_dark, scale_fill_discreterainbow, scale_fill_pale - 1.1.22019-06-02 · diff ↗ ·
removed 3 exports
scale_color_tol, scale_colour_tol, scale_fill_toladded 9 exports
scale_color_contrast, scale_color_iridescent, scale_color_land, scale_colour_contrast, scale_colour_iridescent, scale_colour_land, scale_fill_contrast, scale_fill_iridescent, scale_fill_land - RR 3.6.0 released · 2019-04-26
- 1.1.12019-04-10 · diff ↗
- 1.1.02019-02-24 · diff ↗ ·
added 33 exports
scale_color_BuRd, scale_color_PRGn, scale_color_YlOrBr, scale_color_bright, scale_color_light, scale_color_muted, scale_color_rainbow, scale_color_smoothrainbow, scale_color_soil, scale_color_sunset, scale_color_vibrant, scale_colour_BuRd, scale_colour_PRGn, scale_colour_YlOrBr, scale_colour_bright, scale_colour_light, scale_colour_muted, scale_colour_rainbow, scale_colour_smoothrainbow, scale_colour_soil, scale_colour_sunset, scale_colour_vibrant, scale_fill_BuRd, scale_fill_PRGn, scale_fill_YlOrBr, scale_fill_bright, scale_fill_light, scale_fill_muted, scale_fill_rainbow, scale_fill_smoothrainbow and 3 more - 1.0.02018-10-19
- RR 3.5.0 released · 2018-04-23
Package metadata
- First published
- 2018-10-19
- Total releases
- 22 / 8 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 3.5.0
- Download size
- 2.7 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("khroma")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.