Package: khroma 1.13.0

Nicolas Frerebeau

khroma:Colour Schemes for Scientific Data Visualization

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.

Authors:Nicolas Frerebeau [aut, cre], Brice Lebrun [ctb], Vincent Arel-Bundock [ctb], Ulrik Stervbo [ctb], Université Bordeaux Montaigne [fnd], CNRS [fnd]

khroma_1.13.0.tar.gz
khroma_1.13.0.tar.gz(r-4.5-noble)khroma_1.13.0.tar.gz(r-4.4-noble)
khroma_1.13.0.tgz(r-4.4-emscripten)khroma_1.13.0.tgz(r-4.3-emscripten)
khroma.pdf |khroma.html
khroma/json (API)
NEWS

# Installkhroma in R:
install.packages('khroma',repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/tesselle/khroma/issues

342 exports 1.80 score 0 dependencies 6 dependents 861 downloads

Last updated 4 days agofrom:e1b6e83c5a

Exports:changecolorcolourcompareconvertinfopalette_color_continuouspalette_color_discretepalette_color_pickerpalette_colour_continuouspalette_colour_discretepalette_colour_pickerpalette_linepalette_shapepalette_size_rangeplot_mapplot_schemeplot_scheme_colorblindplot_scheme_colourblindplot_tilesrampscale_color_actonscale_color_bamscale_color_bamakoscale_color_bamOscale_color_batlowscale_color_batlowKscale_color_batlowWscale_color_berlinscale_color_bilbaoscale_color_brightscale_color_brocscale_color_brocOscale_color_budascale_color_bukavuscale_color_BuRdscale_color_corkscale_color_corkOscale_color_darkscale_color_davosscale_color_devonscale_color_discreterainbowscale_color_fesscale_color_grayCscale_color_hawaiiscale_color_highcontrastscale_color_imolascale_color_incandescentscale_color_iridescentscale_color_lajollascale_color_landscale_color_lapazscale_color_lightscale_color_lisbonscale_color_logicalscale_color_mediumcontrastscale_color_mutedscale_color_nightfallscale_color_nuukscale_color_okabeitoscale_color_oleronscale_color_osloscale_color_palescale_color_pickerscale_color_PRGnscale_color_romascale_color_romaOscale_color_smoothrainbowscale_color_soilscale_color_stratigraphyscale_color_sunsetscale_color_tofinoscale_color_tokyoscale_color_turkuscale_color_vanimoscale_color_vibrantscale_color_vikscale_color_vikOscale_color_YlOrBrscale_colour_actonscale_colour_bamscale_colour_bamakoscale_colour_bamOscale_colour_batlowscale_colour_batlowKscale_colour_batlowWscale_colour_berlinscale_colour_bilbaoscale_colour_brightscale_colour_brocscale_colour_brocOscale_colour_budascale_colour_bukavuscale_colour_BuRdscale_colour_corkscale_colour_corkOscale_colour_darkscale_colour_davosscale_colour_devonscale_colour_discreterainbowscale_colour_fesscale_colour_grayCscale_colour_hawaiiscale_colour_highcontrastscale_colour_imolascale_colour_incandescentscale_colour_iridescentscale_colour_lajollascale_colour_landscale_colour_lapazscale_colour_lightscale_colour_lisbonscale_colour_logicalscale_colour_mediumcontrastscale_colour_mutedscale_colour_nightfallscale_colour_nuukscale_colour_okabeitoscale_colour_oleronscale_colour_osloscale_colour_palescale_colour_pickerscale_colour_PRGnscale_colour_romascale_colour_romaOscale_colour_smoothrainbowscale_colour_soilscale_colour_stratigraphyscale_colour_sunsetscale_colour_tofinoscale_colour_tokyoscale_colour_turkuscale_colour_vanimoscale_colour_vibrantscale_colour_vikscale_colour_vikOscale_colour_YlOrBrscale_edge_color_actonscale_edge_color_bamscale_edge_color_bamakoscale_edge_color_batlowscale_edge_color_batlowKscale_edge_color_batlowWscale_edge_color_berlinscale_edge_color_bilbaoscale_edge_color_brightscale_edge_color_brocscale_edge_color_budascale_edge_color_BuRdscale_edge_color_corkscale_edge_color_darkscale_edge_color_davosscale_edge_color_devonscale_edge_color_discreterainbowscale_edge_color_grayCscale_edge_color_hawaiiscale_edge_color_highcontrastscale_edge_color_imolascale_edge_color_incandescentscale_edge_color_iridescentscale_edge_color_lajollascale_edge_color_landscale_edge_color_lapazscale_edge_color_lightscale_edge_color_lisbonscale_edge_color_mediumcontrastscale_edge_color_mutedscale_edge_color_nightfallscale_edge_color_nuukscale_edge_color_okabeitoscale_edge_color_osloscale_edge_color_palescale_edge_color_pickerscale_edge_color_PRGnscale_edge_color_romascale_edge_color_smoothrainbowscale_edge_color_soilscale_edge_color_stratigraphyscale_edge_color_sunsetscale_edge_color_tofinoscale_edge_color_tokyoscale_edge_color_turkuscale_edge_color_vanimoscale_edge_color_vibrantscale_edge_color_vikscale_edge_color_YlOrBrscale_edge_colour_actonscale_edge_colour_bamscale_edge_colour_bamakoscale_edge_colour_batlowscale_edge_colour_batlowKscale_edge_colour_batlowWscale_edge_colour_berlinscale_edge_colour_bilbaoscale_edge_colour_brightscale_edge_colour_brocscale_edge_colour_budascale_edge_colour_BuRdscale_edge_colour_corkscale_edge_colour_darkscale_edge_colour_davosscale_edge_colour_devonscale_edge_colour_discreterainbowscale_edge_colour_grayCscale_edge_colour_hawaiiscale_edge_colour_highcontrastscale_edge_colour_imolascale_edge_colour_incandescentscale_edge_colour_iridescentscale_edge_colour_lajollascale_edge_colour_landscale_edge_colour_lapazscale_edge_colour_lightscale_edge_colour_lisbonscale_edge_colour_mediumcontrastscale_edge_colour_mutedscale_edge_colour_nightfallscale_edge_colour_nuukscale_edge_colour_okabeitoscale_edge_colour_osloscale_edge_colour_palescale_edge_colour_pickerscale_edge_colour_PRGnscale_edge_colour_romascale_edge_colour_smoothrainbowscale_edge_colour_soilscale_edge_colour_stratigraphyscale_edge_colour_sunsetscale_edge_colour_tofinoscale_edge_colour_tokyoscale_edge_colour_turkuscale_edge_colour_vanimoscale_edge_colour_vibrantscale_edge_colour_vikscale_edge_colour_YlOrBrscale_edge_fill_actonscale_edge_fill_bamscale_edge_fill_bamakoscale_edge_fill_batlowscale_edge_fill_batlowKscale_edge_fill_batlowWscale_edge_fill_berlinscale_edge_fill_bilbaoscale_edge_fill_brightscale_edge_fill_brocscale_edge_fill_budascale_edge_fill_BuRdscale_edge_fill_corkscale_edge_fill_darkscale_edge_fill_davosscale_edge_fill_devonscale_edge_fill_discreterainbowscale_edge_fill_grayCscale_edge_fill_hawaiiscale_edge_fill_highcontrastscale_edge_fill_imolascale_edge_fill_incandescentscale_edge_fill_iridescentscale_edge_fill_lajollascale_edge_fill_landscale_edge_fill_lapazscale_edge_fill_lightscale_edge_fill_lisbonscale_edge_fill_mediumcontrastscale_edge_fill_mutedscale_edge_fill_nightfallscale_edge_fill_nuukscale_edge_fill_okabeitoscale_edge_fill_osloscale_edge_fill_palescale_edge_fill_pickerscale_edge_fill_PRGnscale_edge_fill_romascale_edge_fill_smoothrainbowscale_edge_fill_soilscale_edge_fill_stratigraphyscale_edge_fill_sunsetscale_edge_fill_tofinoscale_edge_fill_tokyoscale_edge_fill_turkuscale_edge_fill_vanimoscale_edge_fill_vibrantscale_edge_fill_vikscale_edge_fill_YlOrBrscale_fill_actonscale_fill_bamscale_fill_bamakoscale_fill_bamOscale_fill_batlowscale_fill_batlowKscale_fill_batlowWscale_fill_berlinscale_fill_bilbaoscale_fill_brightscale_fill_brocscale_fill_brocOscale_fill_budascale_fill_bukavuscale_fill_BuRdscale_fill_corkscale_fill_corkOscale_fill_darkscale_fill_davosscale_fill_devonscale_fill_discreterainbowscale_fill_fesscale_fill_grayCscale_fill_hawaiiscale_fill_highcontrastscale_fill_imolascale_fill_incandescentscale_fill_iridescentscale_fill_lajollascale_fill_landscale_fill_lapazscale_fill_lightscale_fill_lisbonscale_fill_logicalscale_fill_mediumcontrastscale_fill_mutedscale_fill_nightfallscale_fill_nuukscale_fill_okabeitoscale_fill_oleronscale_fill_osloscale_fill_palescale_fill_pickerscale_fill_PRGnscale_fill_romascale_fill_romaOscale_fill_smoothrainbowscale_fill_soilscale_fill_stratigraphyscale_fill_sunsetscale_fill_tofinoscale_fill_tokyoscale_fill_turkuscale_fill_vanimoscale_fill_vibrantscale_fill_vikscale_fill_vikOscale_fill_YlOrBr

Dependencies:

Fabio Crameri's Color Schemes

Rendered fromcrameri.Rmdusingknitr::knitron Jul 02 2024.

Last update: 2024-01-09
Started: 2021-04-23

Paul Tol's Color Schemes

Rendered fromtol.Rmdusingknitr::knitron Jul 02 2024.

Last update: 2024-01-09
Started: 2019-08-19

Readme and manuals

Help Manual

Help pageTopics
Simulate Color-Blindnesschange
Color Schemescolor colour
Color Differencecompare
Available Schemesinfo
Color Mapping (continuous)palette_color_continuous palette_colour_continuous
Color Mapping (discrete)palette_color_discrete palette_colour_discrete
Color Mappingpalette_color_picker palette_colour_picker
Symbol Mappingpalette_line palette_shape
Symbol Size Mappingpalette_size_range
Diagnostic Mapplot_map
Plot Color Schemeplot_scheme
Plot Simulated Color Blindnessplot_scheme_colorblind plot_scheme_colourblind
Diagnostic Mapplot_tiles
Plot Color Schemeplot.color_scheme
AVHRR Global Land Cover Classification Color Scheme for 'ggplot2' and 'ggraph'scale_color_land scale_colour_land scale_edge_color_land scale_edge_colour_land scale_edge_fill_land scale_fill_land
FAO Soil Reference Groups Color Scheme for 'ggplot2' and 'ggraph'scale_color_soil scale_colour_soil scale_edge_color_soil scale_edge_colour_soil scale_edge_fill_soil scale_fill_soil
Geologic Timescale Color Scheme for 'ggplot2' and 'ggraph'scale_color_stratigraphy scale_colour_stratigraphy scale_edge_color_stratigraphy scale_edge_colour_stratigraphy scale_edge_fill_stratigraphy scale_fill_stratigraphy
Fabio Crameri's _acton_ Sequential Color Schemescale_color_acton scale_colour_acton scale_crameri_acton scale_edge_color_acton scale_edge_colour_acton scale_edge_fill_acton scale_fill_acton
Fabio Crameri's _bam_ Diverging Color Schemescale_color_bam scale_colour_bam scale_crameri_bam scale_edge_color_bam scale_edge_colour_bam scale_edge_fill_bam scale_fill_bam
Fabio Crameri's _bamako_ Sequential Color Schemescale_color_bamako scale_colour_bamako scale_crameri_bamako scale_edge_color_bamako scale_edge_colour_bamako scale_edge_fill_bamako scale_fill_bamako
Fabio Crameri's _bamO_ Cyclic Color Schemescale_color_bamO scale_colour_bamO scale_crameri_bamO scale_fill_bamO
Fabio Crameri's _batlow_ Sequential Color Schemescale_color_batlow scale_colour_batlow scale_crameri_batlow scale_edge_color_batlow scale_edge_colour_batlow scale_edge_fill_batlow scale_fill_batlow
Fabio Crameri's _batlowK_ Sequential Color Schemescale_color_batlowK scale_colour_batlowK scale_crameri_batlowK scale_edge_color_batlowK scale_edge_colour_batlowK scale_edge_fill_batlowK scale_fill_batlowK
Fabio Crameri's _batlowW_ Sequential Color Schemescale_color_batlowW scale_colour_batlowW scale_crameri_batlowW scale_edge_color_batlowW scale_edge_colour_batlowW scale_edge_fill_batlowW scale_fill_batlowW
Fabio Crameri's _berlin_ Diverging Color Schemescale_color_berlin scale_colour_berlin scale_crameri_berlin scale_edge_color_berlin scale_edge_colour_berlin scale_edge_fill_berlin scale_fill_berlin
Fabio Crameri's _bilbao_ Sequential Color Schemescale_color_bilbao scale_colour_bilbao scale_crameri_bilbao scale_edge_color_bilbao scale_edge_colour_bilbao scale_edge_fill_bilbao scale_fill_bilbao
Fabio Crameri's _broc_ Diverging Color Schemescale_color_broc scale_colour_broc scale_crameri_broc scale_edge_color_broc scale_edge_colour_broc scale_edge_fill_broc scale_fill_broc
Fabio Crameri's _brocO_ Cyclic Color Schemescale_color_brocO scale_colour_brocO scale_crameri_brocO scale_fill_brocO
Fabio Crameri's _buda_ Sequential Color Schemescale_color_buda scale_colour_buda scale_crameri_buda scale_edge_color_buda scale_edge_colour_buda scale_edge_fill_buda scale_fill_buda
Fabio Crameri's _bukavu_ Multi-Sequential Color Schemescale_color_bukavu scale_colour_bukavu scale_crameri_bukavu scale_fill_bukavu
Fabio Crameri's _cork_ Diverging Color Schemescale_color_cork scale_colour_cork scale_crameri_cork scale_edge_color_cork scale_edge_colour_cork scale_edge_fill_cork scale_fill_cork
Fabio Crameri's _corkO_ Cyclic Color Schemescale_color_corkO scale_colour_corkO scale_crameri_corkO scale_fill_corkO
Fabio Crameri's _davos_ Sequential Color Schemescale_color_davos scale_colour_davos scale_crameri_davos scale_edge_color_davos scale_edge_colour_davos scale_edge_fill_davos scale_fill_davos
Fabio Crameri's _devon_ Sequential Color Schemescale_color_devon scale_colour_devon scale_crameri_devon scale_edge_color_devon scale_edge_colour_devon scale_edge_fill_devon scale_fill_devon
Fabio Crameri's _fes_ Multi-Sequential Color Schemescale_color_fes scale_colour_fes scale_crameri_fes scale_fill_fes
Fabio Crameri's _grayC_ Sequential Color Schemescale_color_grayC scale_colour_grayC scale_crameri_grayC scale_edge_color_grayC scale_edge_colour_grayC scale_edge_fill_grayC scale_fill_grayC
Fabio Crameri's _hawaii_ Sequential Color Schemescale_color_hawaii scale_colour_hawaii scale_crameri_hawaii scale_edge_color_hawaii scale_edge_colour_hawaii scale_edge_fill_hawaii scale_fill_hawaii
Fabio Crameri's _imola_ Sequential Color Schemescale_color_imola scale_colour_imola scale_crameri_imola scale_edge_color_imola scale_edge_colour_imola scale_edge_fill_imola scale_fill_imola
Fabio Crameri's _lajolla_ Sequential Color Schemescale_color_lajolla scale_colour_lajolla scale_crameri_lajolla scale_edge_color_lajolla scale_edge_colour_lajolla scale_edge_fill_lajolla scale_fill_lajolla
Fabio Crameri's _lapaz_ Sequential Color Schemescale_color_lapaz scale_colour_lapaz scale_crameri_lapaz scale_edge_color_lapaz scale_edge_colour_lapaz scale_edge_fill_lapaz scale_fill_lapaz
Fabio Crameri's _lisbon_ Diverging Color Schemescale_color_lisbon scale_colour_lisbon scale_crameri_lisbon scale_edge_color_lisbon scale_edge_colour_lisbon scale_edge_fill_lisbon scale_fill_lisbon
Fabio Crameri's _nuuk_ Sequential Color Schemescale_color_nuuk scale_colour_nuuk scale_crameri_nuuk scale_edge_color_nuuk scale_edge_colour_nuuk scale_edge_fill_nuuk scale_fill_nuuk
Fabio Crameri's _oleron_ Multi-Sequential Color Schemescale_color_oleron scale_colour_oleron scale_crameri_oleron scale_fill_oleron
Fabio Crameri's _oslo_ Sequential Color Schemescale_color_oslo scale_colour_oslo scale_crameri_oslo scale_edge_color_oslo scale_edge_colour_oslo scale_edge_fill_oslo scale_fill_oslo
Fabio Crameri's _roma_ Diverging Color Schemescale_color_roma scale_colour_roma scale_crameri_roma scale_edge_color_roma scale_edge_colour_roma scale_edge_fill_roma scale_fill_roma
Fabio Crameri's _romaO_ Cyclic Color Schemescale_color_romaO scale_colour_romaO scale_crameri_romaO scale_fill_romaO
Fabio Crameri's _tofino_ Diverging Color Schemescale_color_tofino scale_colour_tofino scale_crameri_tofino scale_edge_color_tofino scale_edge_colour_tofino scale_edge_fill_tofino scale_fill_tofino
Fabio Crameri's _tokyo_ Sequential Color Schemescale_color_tokyo scale_colour_tokyo scale_crameri_tokyo scale_edge_color_tokyo scale_edge_colour_tokyo scale_edge_fill_tokyo scale_fill_tokyo
Fabio Crameri's _turku_ Sequential Color Schemescale_color_turku scale_colour_turku scale_crameri_turku scale_edge_color_turku scale_edge_colour_turku scale_edge_fill_turku scale_fill_turku
Fabio Crameri's _vanimo_ Diverging Color Schemescale_color_vanimo scale_colour_vanimo scale_crameri_vanimo scale_edge_color_vanimo scale_edge_colour_vanimo scale_edge_fill_vanimo scale_fill_vanimo
Fabio Crameri's _vik_ Diverging Color Schemescale_color_vik scale_colour_vik scale_crameri_vik scale_edge_color_vik scale_edge_colour_vik scale_edge_fill_vik scale_fill_vik
Fabio Crameri's _vikO_ Cyclic Color Schemescale_color_vikO scale_colour_vikO scale_crameri_vikO scale_fill_vikO
Okabe and Ito's Discrete Color Scheme for 'ggplot2' and 'ggraph'scale_color_okabeito scale_colour_okabeito scale_edge_color_okabeito scale_edge_colour_okabeito scale_edge_fill_okabeito scale_fill_okabeito scale_okabeito_discrete
Color Scale Builderscale_color_picker scale_colour_picker scale_edge_color_picker scale_edge_colour_picker scale_edge_fill_picker scale_fill_picker scale_picker
Paul Tol's _bright_ Discrete Color Schemescale_color_bright scale_colour_bright scale_edge_color_bright scale_edge_colour_bright scale_edge_fill_bright scale_fill_bright scale_tol_bright
Paul Tol's _BuRd_ Diverging Color Schemescale_color_BuRd scale_colour_BuRd scale_edge_color_BuRd scale_edge_colour_BuRd scale_edge_fill_BuRd scale_fill_BuRd scale_tol_BuRd
Paul Tol's _dark_ Discrete Color Schemescale_color_dark scale_colour_dark scale_edge_color_dark scale_edge_colour_dark scale_edge_fill_dark scale_fill_dark scale_tol_dark
Paul Tol's _discrete rainbow_ Sequential Color Schemescale_color_discreterainbow scale_colour_discreterainbow scale_edge_color_discreterainbow scale_edge_colour_discreterainbow scale_edge_fill_discreterainbow scale_fill_discreterainbow scale_tol_discreterainbow
Paul Tol's _high contrast_ Discrete Color Schemescale_color_highcontrast scale_colour_highcontrast scale_edge_color_highcontrast scale_edge_colour_highcontrast scale_edge_fill_highcontrast scale_fill_highcontrast scale_tol_highcontrast
Paul Tol's _incandescent_ Sequential Color Schemescale_color_incandescent scale_colour_incandescent scale_edge_color_incandescent scale_edge_colour_incandescent scale_edge_fill_incandescent scale_fill_incandescent scale_tol_incandescent
Paul Tol's _iridescent_ Sequential Color Schemescale_color_iridescent scale_colour_iridescent scale_edge_color_iridescent scale_edge_colour_iridescent scale_edge_fill_iridescent scale_fill_iridescent scale_tol_iridescent
Paul Tol's _light_ Discrete Color Schemescale_color_light scale_colour_light scale_edge_color_light scale_edge_colour_light scale_edge_fill_light scale_fill_light scale_tol_light
Paul Tol's _medium contrast_ Discrete Color Schemescale_color_mediumcontrast scale_colour_mediumcontrast scale_edge_color_mediumcontrast scale_edge_colour_mediumcontrast scale_edge_fill_mediumcontrast scale_fill_mediumcontrast scale_tol_mediumcontrast
Paul Tol's _muted_ Discrete Color Schemescale_color_muted scale_colour_muted scale_edge_color_muted scale_edge_colour_muted scale_edge_fill_muted scale_fill_muted scale_tol_muted
Paul Tol's _nightfall_ Diverging Color Schemescale_color_nightfall scale_colour_nightfall scale_edge_color_nightfall scale_edge_colour_nightfall scale_edge_fill_nightfall scale_fill_nightfall scale_tol_nightfall
Paul Tol's _pale_ Discrete Color Schemescale_color_pale scale_colour_pale scale_edge_color_pale scale_edge_colour_pale scale_edge_fill_pale scale_fill_pale scale_tol_pale
Paul Tol's _PRGn_ Diverging Color Schemescale_color_PRGn scale_colour_PRGn scale_edge_color_PRGn scale_edge_colour_PRGn scale_edge_fill_PRGn scale_fill_PRGn scale_tol_PRGn
Paul Tol's _smooth rainbow_ Sequential Color Schemescale_color_smoothrainbow scale_colour_smoothrainbow scale_edge_color_smoothrainbow scale_edge_colour_smoothrainbow scale_edge_fill_smoothrainbow scale_fill_smoothrainbow scale_tol_smoothrainbow
Paul Tol's _sunset_ Diverging Color Schemescale_color_sunset scale_colour_sunset scale_edge_color_sunset scale_edge_colour_sunset scale_edge_fill_sunset scale_fill_sunset scale_tol_sunset
Paul Tol's _vibrant_ Discrete Color Schemescale_color_vibrant scale_colour_vibrant scale_edge_color_vibrant scale_edge_colour_vibrant scale_edge_fill_vibrant scale_fill_vibrant scale_tol_vibrant
Paul Tol's _YlOrBr_ Sequential Color Schemescale_color_YlOrBr scale_colour_YlOrBr scale_edge_color_YlOrBr scale_edge_colour_YlOrBr scale_edge_fill_YlOrBr scale_fill_YlOrBr scale_tol_YlOrBr