Fabio Crameri’s Color Schemes

library(khroma)

Introduction

Crameri (2018) offers carefully chosen schemes, ready for mapping data, with colors that are:

  • Perceptually uniform,
  • Perceptually ordered,
  • Color vision deficiency friendly,
  • Readable as black and white print,
  • Citable & reproducible.

All the scales presented in Crameri (2021) are implemented here, for use with base R graphics, ggplot2 or ggraph.

Diverging data

broc

broc <- color("broc")
plot(broc(256))

cork

cork <- color("cork")
plot(cork(256))

vik

vik <- color("vik")
plot(vik(256))

lisbon

lisbon <- color("lisbon")
plot(lisbon(256))

tofino

tofino <- color("tofino")
plot(tofino(256))

berlin

berlin <- color("berlin")
plot(berlin(256))

roma

roma <- color("roma")
plot(roma(256))

bam

bam <- color("bam")
plot(bam(256))

vanimo

vanimo <- color("vanimo")
plot(vanimo(256))

Sequential data

batlow

batlow <- color("batlow")
plot(batlow(256))

batlowW

batlowW <- color("batlowW")
plot(batlowW(256))

batlowK

batlowK <- color("batlowK")
plot(batlowK(256))

devon

devon <- color("devon")
plot(devon(256))

lajolla

lajolla <- color("lajolla")
plot(lajolla(256))

bamako

bamako <- color("bamako")
plot(bamako(256))

davos

davos <- color("davos")
plot(davos(256))

bilbao

bilbao <- color("bilbao")
plot(bilbao(256))

nuuk

nuuk <- color("nuuk")
plot(nuuk(256))

oslo

oslo <- color("oslo")
plot(oslo(256))

grayC

grayC <- color("grayC")
plot(grayC(256))

hawaii

hawaii <- color("hawaii")
plot(hawaii(256))

lapaz

lapaz <- color("lapaz")
plot(lapaz(256))

tokyo

tokyo <- color("tokyo")
plot(tokyo(256))

buda

buda <- color("buda")
plot(buda(256))

acton

acton <- color("acton")
plot(acton(256))

turku

turku <- color("turku")
plot(turku(256))

imola

imola <- color("imola")
plot(imola(256))

Multi-sequential data

oleron

oleron <- color("oleron")
plot(oleron(256))

bukavu

bukavu <- color("bukavu")
plot(bukavu(256))

fes

fes <- color("fes")
plot(fes(256))

References

Crameri, F. 2018. “Geodynamic Diagnostics, Scientific Visualisation and StagLab 3.0.” Geoscientific Model Development 11 (6): 2541-2562. DOI: 10.5194/gmd-11-2541-2018.

Crameri, F. 2021. Scientific Colour Maps (version 7.0.0). Zenodo. DOI: 10.5281/zenodo.4491293.