Title: | Colour Schemes for Scientific Data Visualization |
---|---|
Description: | 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] (<https://orcid.org/0000-0001-5759-4944>, Université Bordeaux Montaigne), Brice Lebrun [ctb] (<https://orcid.org/0000-0001-7503-8685>, Université Bordeaux Montaigne), Vincent Arel-Bundock [ctb] (<https://orcid.org/0000-0003-2042-7063>, Université de Montréal), Ulrik Stervbo [ctb] (<https://orcid.org/0000-0002-2831-8868>, Ruhr-Universität Bochum), Université Bordeaux Montaigne [fnd], CNRS [fnd] |
Maintainer: | Nicolas Frerebeau <[email protected]> |
License: | GPL (>= 3) |
Version: | 1.14.0 |
Built: | 2024-09-20 05:03:50 UTC |
Source: | https://github.com/tesselle/khroma |
Simulate Color-Blindness
change(x, mode)
change(x, mode)
x |
A palette |
mode |
A |
A palette function
that returns a vector of anomalized
colors. All the attributes of the initial palette function are inherited,
with a supplementary attribute "mode
" giving the corresponding
color-blind vision.
N. Frerebeau
Brettel, H., Viénot, F. and Mollon, J. D. (1997). Computerized Simulation of Color Appearance for Dichromats. Journal of the Optical Society of America A, 14(10), p. 2647-2655. doi:10.1364/JOSAA.14.002647.
Tol, P. (2018). Colour Schemes. SRON. Technical Note No. SRON/EPS/TN/09-002, issue 3.1. URL: https://personal.sron.nl/~pault/data/colourschemes.pdf
Viénot, F., Brettel, H. and Mollon, J. D. (1999). Digital Video Colourmaps for Checking the Legibility of Displays by Dichromats. Color Research & Application, 24(4), p. 243-52. doi:10.1002/(SICI)1520-6378(199908)24:4<243::AID-COL5>3.0.CO;2-3.
Other diagnostic tools:
compare()
,
plot.color_scheme()
,
plot_map()
,
plot_scheme()
,
plot_scheme_colourblind()
,
plot_tiles()
# Trichromat pal <- colour("bright") plot_scheme(pal(7)) # Deuteranopia deu <- change(pal, mode = "deuteranopia") plot_scheme(deu(7)) # Protanopia pro <- change(pal, mode = "protanopia") plot_scheme(pro(7)) # Tritanopia tri <- change(pal, mode = "tritanopia") plot_scheme(tri(7)) # Achromatopsia ach <- change(pal, mode = "achromatopsia") plot_scheme(ach(7)) ## Plot simulated color blindness plot_scheme_colorblind(pal(7))
# Trichromat pal <- colour("bright") plot_scheme(pal(7)) # Deuteranopia deu <- change(pal, mode = "deuteranopia") plot_scheme(deu(7)) # Protanopia pro <- change(pal, mode = "protanopia") plot_scheme(pro(7)) # Tritanopia tri <- change(pal, mode = "tritanopia") plot_scheme(tri(7)) # Achromatopsia ach <- change(pal, mode = "achromatopsia") plot_scheme(ach(7)) ## Plot simulated color blindness plot_scheme_colorblind(pal(7))
Provides qualitative, diverging and sequential color schemes.
colour( palette, reverse = FALSE, names = FALSE, lang = "en", force = FALSE, ... ) color(palette, reverse = FALSE, names = FALSE, lang = "en", force = FALSE, ...)
colour( palette, reverse = FALSE, names = FALSE, lang = "en", force = FALSE, ... ) color(palette, reverse = FALSE, names = FALSE, lang = "en", force = FALSE, ...)
palette |
A |
reverse |
A |
names |
A |
lang |
A |
force |
A |
... |
Further arguments passed to colorRampPalette. |
A function
function with the following attributes, that when called
with a single argument (an integer
specifying the number of colors)
returns a (named) vector of colors.
A character
string giving the name of the
color scheme.
A character
string giving the corresponding
data type. One of "qualitative
", "diverging
" or "sequential
".
A logical
scalar: can the color palette be
interpolated?
A character
string giving the the hexadecimal
representation of the color that should be used for NA
values.
An integer
giving the maximum number of color values.
Only relevant for non-interpolated color schemes.
For color schemes that can be interpolated (diverging and sequential data),
the color range can be limited with an additional argument. range
allows
to remove a fraction of the color domain (before being interpolated; see
examples).
N. Frerebeau
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geosci. Model Dev., 11, 2541-2562. doi:10.5194/gmd-11-2541-2018
Crameri, F., Shephard, G. E. & Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11, 5444. doi:10.1038/s41467-020-19160-7
Jones, A., Montanarella, L. & Jones, R. (Ed.) (2005). Soil atlas of Europe. Luxembourg: European Commission, Office for Official Publications of the European Communities. 128 pp. ISBN: 92-894-8120-X.
Okabe, M. & Ito, K. (2008). Color Universal Design (CUD): How to Make Figures and Presentations That Are Friendly to Colorblind People. URL: https://jfly.uni-koeln.de/color/.
Tol, P. (2021). Colour Schemes. SRON. Technical Note No. SRON/EPS/TN/09-002, issue 3.2. URL: https://personal.sron.nl/~pault/data/colourschemes.pdf
Commission for the Geological Map of the World
Other color schemes:
info()
## Okabe and Ito colour scheme colour("okabe ito")(8) plot_scheme(colour("okabe ito")(8)) ## Paul Tol's colour schemes ### Qualitative data plot_scheme(colour("bright")(7)) plot_scheme(colour("high contrast")(3)) plot_scheme(colour("vibrant")(7)) plot_scheme(colour("muted")(9)) plot_scheme(colour("medium contrast")(6)) plot_scheme(colour("pale")(6)) plot_scheme(colour("dark")(6)) plot_scheme(colour("light")(9)) ### Diverging data plot_scheme(colour("sunset")(11)) plot_scheme(colour("BuRd")(9)) plot_scheme(colour("PRGn")(9)) ### Sequential data plot_scheme(colour("YlOrBr")(9)) plot_scheme(colour("iridescent")(23)) plot_scheme(colour("discrete rainbow")(14)) plot_scheme(colour("discrete rainbow")(23)) plot_scheme(colour("smooth rainbow")(34)) ## Scientific colour schemes ### Geologic timescale plot_scheme(colour("stratigraphy")(175)) ### AVHRR global land cover classification plot_scheme(colour("land")(14)) ### FAO soil reference groups plot_scheme(colour("soil")(24)) ## Adjust colour levels PRGn <- colour("PRGn") plot_scheme(PRGn(9, range = c(0.5, 1)))
## Okabe and Ito colour scheme colour("okabe ito")(8) plot_scheme(colour("okabe ito")(8)) ## Paul Tol's colour schemes ### Qualitative data plot_scheme(colour("bright")(7)) plot_scheme(colour("high contrast")(3)) plot_scheme(colour("vibrant")(7)) plot_scheme(colour("muted")(9)) plot_scheme(colour("medium contrast")(6)) plot_scheme(colour("pale")(6)) plot_scheme(colour("dark")(6)) plot_scheme(colour("light")(9)) ### Diverging data plot_scheme(colour("sunset")(11)) plot_scheme(colour("BuRd")(9)) plot_scheme(colour("PRGn")(9)) ### Sequential data plot_scheme(colour("YlOrBr")(9)) plot_scheme(colour("iridescent")(23)) plot_scheme(colour("discrete rainbow")(14)) plot_scheme(colour("discrete rainbow")(23)) plot_scheme(colour("smooth rainbow")(34)) ## Scientific colour schemes ### Geologic timescale plot_scheme(colour("stratigraphy")(175)) ### AVHRR global land cover classification plot_scheme(colour("land")(14)) ### FAO soil reference groups plot_scheme(colour("soil")(24)) ## Adjust colour levels PRGn <- colour("PRGn") plot_scheme(PRGn(9, range = c(0.5, 1)))
Computes CIELAB distance metric.
compare(x, metric = 2000, diag = FALSE, upper = FALSE)
compare(x, metric = 2000, diag = FALSE, upper = FALSE)
x |
A |
metric |
An |
diag |
A |
upper |
A |
N. Frerebeau
Other diagnostic tools:
change()
,
plot.color_scheme()
,
plot_map()
,
plot_scheme()
,
plot_scheme_colourblind()
,
plot_tiles()
# Trichromat pal <- colour("bright") compare(pal(5)) # Deuteranopia deu <- change(pal, mode = "deuteranopia") compare(deu(5)) # Protanopia pro <- change(pal, mode = "protanopia") compare(pro(5)) # Tritanopia tri <- change(pal, mode = "tritanopia") compare(tri(5)) # Achromatopsia ach <- change(pal, mode = "achromatopsia") compare(ach(5))
# Trichromat pal <- colour("bright") compare(pal(5)) # Deuteranopia deu <- change(pal, mode = "deuteranopia") compare(deu(5)) # Protanopia pro <- change(pal, mode = "protanopia") compare(pro(5)) # Tritanopia tri <- change(pal, mode = "tritanopia") compare(tri(5)) # Achromatopsia ach <- change(pal, mode = "achromatopsia") compare(ach(5))
Returns information about the available schemes.
info()
info()
A data.frame
with the following columns:
palette
Names of palette.
type
Types of schemes: sequential, diverging or qualitative.
max
Maximum number of colors that are contained in each palette. Only relevant for qualitative schemes.
missing
The hexadecimal color value for mapping missing values.
N. Frerebeau
Other color schemes:
colour()
## Get a table of available palettes info()
## Get a table of available palettes info()
Maps continuous values to an interpolated colors gradient.
palette_color_continuous( colors = NULL, domain = NULL, midpoint = NULL, missing = "#DDDDDD" ) palette_colour_continuous( colors = NULL, domain = NULL, midpoint = NULL, missing = "#DDDDDD" )
palette_color_continuous( colors = NULL, domain = NULL, midpoint = NULL, missing = "#DDDDDD" ) palette_colour_continuous( colors = NULL, domain = NULL, midpoint = NULL, missing = "#DDDDDD" )
colors |
A vector of colors or a |
domain |
A |
midpoint |
A length-one |
missing |
The color to return for |
A palette function
that when called with a single argument
(a numeric
vector of continuous values) returns a character
vector
of colors.
Other palettes:
palette_color_discrete()
,
palette_color_picker()
,
palette_shape()
,
palette_size_range()
## Visualize a simple DEM model ## Distribution of elevation values elevation <- hist(volcano) ## Where are breaks? elevation$breaks ## Build palette functions BuRd <- color("BuRd") ramp_BuRd <- palette_color_continuous(colors = BuRd(10)) ## Plot image image(volcano, col = ramp_BuRd(elevation$breaks)) legend("topright", legend = elevation$breaks, fill = ramp_BuRd(elevation$breaks))
## Visualize a simple DEM model ## Distribution of elevation values elevation <- hist(volcano) ## Where are breaks? elevation$breaks ## Build palette functions BuRd <- color("BuRd") ramp_BuRd <- palette_color_continuous(colors = BuRd(10)) ## Plot image image(volcano, col = ramp_BuRd(elevation$breaks)) legend("topright", legend = elevation$breaks, fill = ramp_BuRd(elevation$breaks))
Maps categorical values to colors.
palette_color_discrete( colors = NULL, domain = NULL, ordered = FALSE, missing = "#DDDDDD" ) palette_colour_discrete( colors = NULL, domain = NULL, ordered = FALSE, missing = "#DDDDDD" )
palette_color_discrete( colors = NULL, domain = NULL, ordered = FALSE, missing = "#DDDDDD" ) palette_colour_discrete( colors = NULL, domain = NULL, ordered = FALSE, missing = "#DDDDDD" )
colors |
A vector of colors or a |
domain |
A vector of categorical data specifying the possible values that can be mapped. |
ordered |
A |
missing |
The color to return for |
A palette function
that when called with a single argument
(a vector of categorical values) returns a character
vector of colors.
Other palettes:
palette_color_continuous()
,
palette_color_picker()
,
palette_shape()
,
palette_size_range()
## Build color palette functions bright <- c(versicolor = "#4477AA", virginica = "#EE6677", setosa = "#228833") pal_color <- palette_color_discrete(colors = bright) ## Build symbol palette functions symbols <- c(versicolor = 15, virginica = 16, setosa = 17) pal_shapes <- palette_shape(symbols) ## Plot plot( x = iris$Petal.Length, y = iris$Sepal.Length, pch = pal_shapes(iris$Species), col = pal_color(iris$Species), xlab = "Petal length", ylab = "Sepal length", panel.first = grid(), las = 1 ) legend("topleft", legend = names(bright), col = bright, pch = symbols)
## Build color palette functions bright <- c(versicolor = "#4477AA", virginica = "#EE6677", setosa = "#228833") pal_color <- palette_color_discrete(colors = bright) ## Build symbol palette functions symbols <- c(versicolor = 15, virginica = 16, setosa = 17) pal_shapes <- palette_shape(symbols) ## Plot plot( x = iris$Petal.Length, y = iris$Sepal.Length, pch = pal_shapes(iris$Species), col = pal_color(iris$Species), xlab = "Petal length", ylab = "Sepal length", panel.first = grid(), las = 1 ) legend("topleft", legend = names(bright), col = bright, pch = symbols)
Maps values to colors.
palette_color_picker( scheme, domain = NULL, midpoint = NULL, ordered = FALSE, missing = NULL, ... ) palette_colour_picker( scheme, domain = NULL, midpoint = NULL, ordered = FALSE, missing = NULL, ... )
palette_color_picker( scheme, domain = NULL, midpoint = NULL, ordered = FALSE, missing = NULL, ... ) palette_colour_picker( scheme, domain = NULL, midpoint = NULL, ordered = FALSE, missing = NULL, ... )
scheme |
A |
domain |
A |
midpoint |
A length-one |
ordered |
A |
missing |
The color to return for |
... |
Further parameters to be passed to |
A wrapper around palette_color_continuous()
and
palette_color_discrete()
.
A palette function
that when called with a single argument returns
a character
vector of colors.
Other palettes:
palette_color_continuous()
,
palette_color_discrete()
,
palette_shape()
,
palette_size_range()
## Visualize a simple DEM model ## Distribution of elevation values elevation <- hist(volcano) ## Where are breaks? elevation$breaks ## Build palette functions ramp_BuRd <- palette_color_picker("BuRd") (col <- ramp_BuRd(elevation$breaks)) image(volcano, col = col) legend("topright", legend = elevation$breaks, fill = col) ## Rescale to midpoint ramp_BuRd <- palette_color_picker("BuRd", midpoint = 160) (col <- ramp_BuRd(elevation$breaks)) image(volcano, col = col) legend("topright", legend = elevation$breaks, fill = col)
## Visualize a simple DEM model ## Distribution of elevation values elevation <- hist(volcano) ## Where are breaks? elevation$breaks ## Build palette functions ramp_BuRd <- palette_color_picker("BuRd") (col <- ramp_BuRd(elevation$breaks)) image(volcano, col = col) legend("topright", legend = elevation$breaks, fill = col) ## Rescale to midpoint ramp_BuRd <- palette_color_picker("BuRd", midpoint = 160) (col <- ramp_BuRd(elevation$breaks)) image(volcano, col = col) legend("topright", legend = elevation$breaks, fill = col)
Symbol Mapping
palette_shape(symbols = NULL, domain = NULL, ordered = FALSE, ...) palette_line(types = NULL, domain = NULL, ordered = FALSE, ...)
palette_shape(symbols = NULL, domain = NULL, ordered = FALSE, ...) palette_line(types = NULL, domain = NULL, ordered = FALSE, ...)
symbols , types
|
A vector of symbols or line types. |
domain |
A vector of categorical data specifying the possible values that can be mapped. |
ordered |
A |
... |
Currently not used. |
A palette function
that when called with a single argument
(a character
vector of categorical values) returns a vector of symbols.
Other palettes:
palette_color_continuous()
,
palette_color_discrete()
,
palette_color_picker()
,
palette_size_range()
## Build color palette functions bright <- c(versicolor = "#4477AA", virginica = "#EE6677", setosa = "#228833") pal_color <- palette_color_discrete(colors = bright) ## Build symbol palette functions symbols <- c(versicolor = 15, virginica = 16, setosa = 17) pal_shapes <- palette_shape(symbols) ## Plot plot( x = iris$Petal.Length, y = iris$Sepal.Length, pch = pal_shapes(iris$Species), col = pal_color(iris$Species), xlab = "Petal length", ylab = "Sepal length", panel.first = grid(), las = 1 ) legend("topleft", legend = names(bright), col = bright, pch = symbols)
## Build color palette functions bright <- c(versicolor = "#4477AA", virginica = "#EE6677", setosa = "#228833") pal_color <- palette_color_discrete(colors = bright) ## Build symbol palette functions symbols <- c(versicolor = 15, virginica = 16, setosa = 17) pal_shapes <- palette_shape(symbols) ## Plot plot( x = iris$Petal.Length, y = iris$Sepal.Length, pch = pal_shapes(iris$Species), col = pal_color(iris$Species), xlab = "Petal length", ylab = "Sepal length", panel.first = grid(), las = 1 ) legend("topleft", legend = names(bright), col = bright, pch = symbols)
Symbol Size Mapping
palette_size_range(range = c(1, 6), ...)
palette_size_range(range = c(1, 6), ...)
range |
A length-two |
... |
Currently not used. |
A palette function
that when called with a single argument
(a numeric
vector of continuous values) returns a numeric
vector
giving the amount by which plotting text and symbols should be magnified
relative to the default.
Other palettes:
palette_color_continuous()
,
palette_color_discrete()
,
palette_color_picker()
,
palette_shape()
## Visualize a simple DEM model ## Distribution of elevation values elevation <- hist(volcano) ## Where are breaks? elevation$breaks ## Build palette functions BuRd <- color("BuRd") ramp_BuRd <- palette_color_continuous(colors = BuRd(10)) ## Plot image image(volcano, col = ramp_BuRd(elevation$breaks)) legend("topright", legend = elevation$breaks, fill = ramp_BuRd(elevation$breaks))
## Visualize a simple DEM model ## Distribution of elevation values elevation <- hist(volcano) ## Where are breaks? elevation$breaks ## Build palette functions BuRd <- color("BuRd") ramp_BuRd <- palette_color_continuous(colors = BuRd(10)) ## Plot image image(volcano, col = ramp_BuRd(elevation$breaks)) legend("topright", legend = elevation$breaks, fill = ramp_BuRd(elevation$breaks))
Produces a diagnostic map for a given color scheme.
plot_map(x)
plot_map(x)
x |
A |
plot_map()
is called for its side-effects: it results in a graphic
being displayed (invisibly returns x
).
N. Frerebeau, V. Arel-Bundock
Other diagnostic tools:
change()
,
compare()
,
plot.color_scheme()
,
plot_scheme()
,
plot_scheme_colourblind()
,
plot_tiles()
plot(colour("bright")(7)) plot(colour("smooth rainbow")(256)) ## Plot colour schemes plot_scheme(colour("bright")(7)) plot_scheme(colour("sunset")(11)) plot_scheme(colour("YlOrBr")(9)) plot_scheme(colour("discrete rainbow")(14)) ## Plot diagnostic maps plot_map(colour("bright")(7)) plot_map(colour("sunset")(11)) plot_map(colour("YlOrBr")(9)) plot_map(colour("discrete rainbow")(14)) ## Plot diagnostic images plot_tiles(colour("discrete rainbow")(14), n = 256) plot_tiles(colour("discrete rainbow")(23), n = 256) plot_tiles(colour("smooth rainbow")(256), n = 256)
plot(colour("bright")(7)) plot(colour("smooth rainbow")(256)) ## Plot colour schemes plot_scheme(colour("bright")(7)) plot_scheme(colour("sunset")(11)) plot_scheme(colour("YlOrBr")(9)) plot_scheme(colour("discrete rainbow")(14)) ## Plot diagnostic maps plot_map(colour("bright")(7)) plot_map(colour("sunset")(11)) plot_map(colour("YlOrBr")(9)) plot_map(colour("discrete rainbow")(14)) ## Plot diagnostic images plot_tiles(colour("discrete rainbow")(14), n = 256) plot_tiles(colour("discrete rainbow")(23), n = 256) plot_tiles(colour("smooth rainbow")(256), n = 256)
Shows colors in a plot.
plot_scheme(x, colours = FALSE, names = FALSE, size = 1)
plot_scheme(x, colours = FALSE, names = FALSE, size = 1)
x |
A |
colours |
A |
names |
A |
size |
A |
plot_scheme()
is called for its side-effects: it results in a graphic
being displayed (invisibly returns x
).
N. Frerebeau
Other diagnostic tools:
change()
,
compare()
,
plot.color_scheme()
,
plot_map()
,
plot_scheme_colourblind()
,
plot_tiles()
plot(colour("bright")(7)) plot(colour("smooth rainbow")(256)) ## Plot colour schemes plot_scheme(colour("bright")(7)) plot_scheme(colour("sunset")(11)) plot_scheme(colour("YlOrBr")(9)) plot_scheme(colour("discrete rainbow")(14)) ## Plot diagnostic maps plot_map(colour("bright")(7)) plot_map(colour("sunset")(11)) plot_map(colour("YlOrBr")(9)) plot_map(colour("discrete rainbow")(14)) ## Plot diagnostic images plot_tiles(colour("discrete rainbow")(14), n = 256) plot_tiles(colour("discrete rainbow")(23), n = 256) plot_tiles(colour("smooth rainbow")(256), n = 256)
plot(colour("bright")(7)) plot(colour("smooth rainbow")(256)) ## Plot colour schemes plot_scheme(colour("bright")(7)) plot_scheme(colour("sunset")(11)) plot_scheme(colour("YlOrBr")(9)) plot_scheme(colour("discrete rainbow")(14)) ## Plot diagnostic maps plot_map(colour("bright")(7)) plot_map(colour("sunset")(11)) plot_map(colour("YlOrBr")(9)) plot_map(colour("discrete rainbow")(14)) ## Plot diagnostic images plot_tiles(colour("discrete rainbow")(14), n = 256) plot_tiles(colour("discrete rainbow")(23), n = 256) plot_tiles(colour("smooth rainbow")(256), n = 256)
Shows colors in a plot with different types of simulated color blindness.
plot_scheme_colourblind(x) plot_scheme_colorblind(x)
plot_scheme_colourblind(x) plot_scheme_colorblind(x)
x |
A |
plot_scheme_colourblind()
is called for its side-effects: it results in a
graphic being displayed (invisibly returns x
).
N. Frerebeau, V. Arel-Bundock
Other diagnostic tools:
change()
,
compare()
,
plot.color_scheme()
,
plot_map()
,
plot_scheme()
,
plot_tiles()
# Trichromat pal <- colour("bright") plot_scheme(pal(7)) # Deuteranopia deu <- change(pal, mode = "deuteranopia") plot_scheme(deu(7)) # Protanopia pro <- change(pal, mode = "protanopia") plot_scheme(pro(7)) # Tritanopia tri <- change(pal, mode = "tritanopia") plot_scheme(tri(7)) # Achromatopsia ach <- change(pal, mode = "achromatopsia") plot_scheme(ach(7)) ## Plot simulated color blindness plot_scheme_colorblind(pal(7))
# Trichromat pal <- colour("bright") plot_scheme(pal(7)) # Deuteranopia deu <- change(pal, mode = "deuteranopia") plot_scheme(deu(7)) # Protanopia pro <- change(pal, mode = "protanopia") plot_scheme(pro(7)) # Tritanopia tri <- change(pal, mode = "tritanopia") plot_scheme(tri(7)) # Achromatopsia ach <- change(pal, mode = "achromatopsia") plot_scheme(ach(7)) ## Plot simulated color blindness plot_scheme_colorblind(pal(7))
Produces a diagnostic map for a given color scheme.
plot_tiles(x, n = 512)
plot_tiles(x, n = 512)
x |
A |
n |
An |
plot_tiles()
is called for its side-effects: it results in a graphic
being displayed (invisibly returns x
).
N. Frerebeau
Other diagnostic tools:
change()
,
compare()
,
plot.color_scheme()
,
plot_map()
,
plot_scheme()
,
plot_scheme_colourblind()
plot(colour("bright")(7)) plot(colour("smooth rainbow")(256)) ## Plot colour schemes plot_scheme(colour("bright")(7)) plot_scheme(colour("sunset")(11)) plot_scheme(colour("YlOrBr")(9)) plot_scheme(colour("discrete rainbow")(14)) ## Plot diagnostic maps plot_map(colour("bright")(7)) plot_map(colour("sunset")(11)) plot_map(colour("YlOrBr")(9)) plot_map(colour("discrete rainbow")(14)) ## Plot diagnostic images plot_tiles(colour("discrete rainbow")(14), n = 256) plot_tiles(colour("discrete rainbow")(23), n = 256) plot_tiles(colour("smooth rainbow")(256), n = 256)
plot(colour("bright")(7)) plot(colour("smooth rainbow")(256)) ## Plot colour schemes plot_scheme(colour("bright")(7)) plot_scheme(colour("sunset")(11)) plot_scheme(colour("YlOrBr")(9)) plot_scheme(colour("discrete rainbow")(14)) ## Plot diagnostic maps plot_map(colour("bright")(7)) plot_map(colour("sunset")(11)) plot_map(colour("YlOrBr")(9)) plot_map(colour("discrete rainbow")(14)) ## Plot diagnostic images plot_tiles(colour("discrete rainbow")(14), n = 256) plot_tiles(colour("discrete rainbow")(23), n = 256) plot_tiles(colour("smooth rainbow")(256), n = 256)
Quickly displays a color scheme returned by color()
.
## S3 method for class 'color_scheme' plot(x, ...)
## S3 method for class 'color_scheme' plot(x, ...)
x |
A |
... |
Currently not used. |
plot()
is called for its side-effects: it results in a graphic
being displayed (invisibly returns x
).
N. Frerebeau
Other diagnostic tools:
change()
,
compare()
,
plot_map()
,
plot_scheme()
,
plot_scheme_colourblind()
,
plot_tiles()
plot(colour("bright")(7)) plot(colour("smooth rainbow")(256)) ## Plot colour schemes plot_scheme(colour("bright")(7)) plot_scheme(colour("sunset")(11)) plot_scheme(colour("YlOrBr")(9)) plot_scheme(colour("discrete rainbow")(14)) ## Plot diagnostic maps plot_map(colour("bright")(7)) plot_map(colour("sunset")(11)) plot_map(colour("YlOrBr")(9)) plot_map(colour("discrete rainbow")(14)) ## Plot diagnostic images plot_tiles(colour("discrete rainbow")(14), n = 256) plot_tiles(colour("discrete rainbow")(23), n = 256) plot_tiles(colour("smooth rainbow")(256), n = 256)
plot(colour("bright")(7)) plot(colour("smooth rainbow")(256)) ## Plot colour schemes plot_scheme(colour("bright")(7)) plot_scheme(colour("sunset")(11)) plot_scheme(colour("YlOrBr")(9)) plot_scheme(colour("discrete rainbow")(14)) ## Plot diagnostic maps plot_map(colour("bright")(7)) plot_map(colour("sunset")(11)) plot_map(colour("YlOrBr")(9)) plot_map(colour("discrete rainbow")(14)) ## Plot diagnostic images plot_tiles(colour("discrete rainbow")(14), n = 256) plot_tiles(colour("discrete rainbow")(23), n = 256) plot_tiles(colour("smooth rainbow")(256), n = 256)
Provides the AVHRR Global Land Cover classification as modified by Paul Tol (colorblind safe).
scale_colour_land(..., lang = "en", aesthetics = "colour") scale_color_land(..., lang = "en", aesthetics = "colour") scale_fill_land(..., lang = "en", aesthetics = "fill") scale_edge_colour_land(..., lang = "en") scale_edge_color_land(..., lang = "en") scale_edge_fill_land(..., lang = "en")
scale_colour_land(..., lang = "en", aesthetics = "colour") scale_color_land(..., lang = "en", aesthetics = "colour") scale_fill_land(..., lang = "en", aesthetics = "fill") scale_edge_colour_land(..., lang = "en") scale_edge_color_land(..., lang = "en") scale_edge_fill_land(..., lang = "en")
... |
Arguments passed on to |
lang |
A |
aesthetics |
A |
Values will be matched based on the land classification names.
A discrete scale.
N. Frerebeau
Tol, P. (2018). Colour Schemes. SRON. Technical Note No. SRON/EPS/TN/09-002, issue 3.1. URL: https://personal.sron.nl/~pault/data/colourschemes.pdf
Other themed color schemes:
scale_colour_soil()
,
scale_colour_stratigraphy()
Other qualitative color schemes:
scale_colour_soil()
,
scale_colour_stratigraphy()
,
scale_okabeito_discrete
,
scale_tol_bright
,
scale_tol_dark
,
scale_tol_discreterainbow
,
scale_tol_highcontrast
,
scale_tol_light
,
scale_tol_mediumcontrast
,
scale_tol_muted
,
scale_tol_pale
,
scale_tol_vibrant
library(ggplot2) land <- data.frame( name = c( "water", "evergreen needleleaf forest", "deciduous needleleaf forest", "mixed forest", "evergreen broadleaf forest", "deciduous broadleaf forest", "woodland", "wooded grassland", "grassland", "cropland", "closed shrubland", "open shrubland", "bare ground", "urban and built" ) ) ggplot2::ggplot(land) + ggplot2::geom_rect(ggplot2::aes(xmin = rep(0, 14), xmax = rep(1, 14), ymin = 1:14, ymax = 1:14+1, fill = name)) + ggplot2::scale_y_reverse() + scale_fill_land(name = "land")
library(ggplot2) land <- data.frame( name = c( "water", "evergreen needleleaf forest", "deciduous needleleaf forest", "mixed forest", "evergreen broadleaf forest", "deciduous broadleaf forest", "woodland", "wooded grassland", "grassland", "cropland", "closed shrubland", "open shrubland", "bare ground", "urban and built" ) ) ggplot2::ggplot(land) + ggplot2::geom_rect(ggplot2::aes(xmin = rep(0, 14), xmax = rep(1, 14), ymin = 1:14, ymax = 1:14+1, fill = name)) + ggplot2::scale_y_reverse() + scale_fill_land(name = "land")
Provides the FAO Soil Reference Groups color scheme.
scale_colour_soil(..., lang = "en", aesthetics = "colour") scale_color_soil(..., lang = "en", aesthetics = "colour") scale_fill_soil(..., lang = "en", aesthetics = "fill") scale_edge_colour_soil(..., lang = "en") scale_edge_color_soil(..., lang = "en") scale_edge_fill_soil(..., lang = "en")
scale_colour_soil(..., lang = "en", aesthetics = "colour") scale_color_soil(..., lang = "en", aesthetics = "colour") scale_fill_soil(..., lang = "en", aesthetics = "fill") scale_edge_colour_soil(..., lang = "en") scale_edge_color_soil(..., lang = "en") scale_edge_fill_soil(..., lang = "en")
... |
Arguments passed on to |
lang |
A |
aesthetics |
A |
Values will be matched based on the soil names.
A discrete scale.
N. Frerebeau
Jones, A., Montanarella, L. & Jones, R. (Ed.) (2005). Soil atlas of Europe. Luxembourg: European Commission, Office for Official Publications of the European Communities. 128 pp. ISBN: 92-894-8120-X.
Other themed color schemes:
scale_colour_land()
,
scale_colour_stratigraphy()
Other qualitative color schemes:
scale_colour_land()
,
scale_colour_stratigraphy()
,
scale_okabeito_discrete
,
scale_tol_bright
,
scale_tol_dark
,
scale_tol_discreterainbow
,
scale_tol_highcontrast
,
scale_tol_light
,
scale_tol_mediumcontrast
,
scale_tol_muted
,
scale_tol_pale
,
scale_tol_vibrant
library(ggplot2) soil <- data.frame( name = c( "Acrisol", "Albeluvisol", "Andosol", "Anthrosol", "Arenosol", "Calcisol", "Cambisol", "Chernozem", "Cryosol", "Fluvisol", "Kastanozem", "Gleysol", "Gypsisol", "Histosol", "Leptosol", "Luvisol", "Phaeozem", "Planosol", "Podzol", "Regosol", "Solonchak", "Solonetz", "Umbrisol", "Vertisol" ) ) ggplot2::ggplot(soil) + ggplot2::geom_rect(ggplot2::aes(xmin = rep(0, 24), xmax = rep(1, 24), ymin = 1:24, ymax = 1:24+1, fill = name)) + ggplot2::scale_y_reverse() + scale_fill_soil(name = "Soil")
library(ggplot2) soil <- data.frame( name = c( "Acrisol", "Albeluvisol", "Andosol", "Anthrosol", "Arenosol", "Calcisol", "Cambisol", "Chernozem", "Cryosol", "Fluvisol", "Kastanozem", "Gleysol", "Gypsisol", "Histosol", "Leptosol", "Luvisol", "Phaeozem", "Planosol", "Podzol", "Regosol", "Solonchak", "Solonetz", "Umbrisol", "Vertisol" ) ) ggplot2::ggplot(soil) + ggplot2::geom_rect(ggplot2::aes(xmin = rep(0, 24), xmax = rep(1, 24), ymin = 1:24, ymax = 1:24+1, fill = name)) + ggplot2::scale_y_reverse() + scale_fill_soil(name = "Soil")
Provides the geologic timescale color scheme.
scale_colour_stratigraphy(..., lang = "en", aesthetics = "colour") scale_color_stratigraphy(..., lang = "en", aesthetics = "colour") scale_fill_stratigraphy(..., lang = "en", aesthetics = "fill") scale_edge_colour_stratigraphy(..., lang = "en") scale_edge_color_stratigraphy(..., lang = "en") scale_edge_fill_stratigraphy(..., lang = "en")
scale_colour_stratigraphy(..., lang = "en", aesthetics = "colour") scale_color_stratigraphy(..., lang = "en", aesthetics = "colour") scale_fill_stratigraphy(..., lang = "en", aesthetics = "fill") scale_edge_colour_stratigraphy(..., lang = "en") scale_edge_color_stratigraphy(..., lang = "en") scale_edge_fill_stratigraphy(..., lang = "en")
... |
Arguments passed on to |
lang |
A |
aesthetics |
A |
Values will be matched based on the geological unit names.
A discrete scale.
N. Frerebeau
Commission for the Geological Map of the World.
Other themed color schemes:
scale_colour_land()
,
scale_colour_soil()
Other qualitative color schemes:
scale_colour_land()
,
scale_colour_soil()
,
scale_okabeito_discrete
,
scale_tol_bright
,
scale_tol_dark
,
scale_tol_discreterainbow
,
scale_tol_highcontrast
,
scale_tol_light
,
scale_tol_mediumcontrast
,
scale_tol_muted
,
scale_tol_pale
,
scale_tol_vibrant
library(ggplot2) strati <- data.frame( name = c("Phanerozoic", "Paleozoic", "Cambrian", "Ordovician", "Silurian", "Devonian", "Carboniferous", "Mesozoic", "Triassic", "Cretaceous", "Jurassic", "Cenozoic", "Paleogene", "Neogene", "Quaternary"), type = c("Eon", "Era", "Period", "Period", "Period", "Period", "Period", "Era", "Period", "Period", "Period", "Era", "Period", "Period", "Period"), start = c(541, 541, 541, 485, 444, 419, 359, 252, 252, 201, 145, 66, 66, 23, 2.6), end = c(0, 252, 485, 444, 419, 359, 252, 66, 201, 145, 66, 2.6, 23, 2.6, 0) ) ## Keep chronological order in the legend strati$name <- factor(strati$name, levels = rev(unique(strati$name)), ordered = TRUE) ## Workaround: use `limits = force` to remove unused values ggplot2::ggplot(strati) + ggplot2::geom_rect(ggplot2::aes(xmin = rep(0, 15), xmax = rep(1, 15), ymin = start, ymax = end, fill = name)) + ggplot2::scale_y_reverse() + ggplot2::facet_grid(. ~ type) + scale_fill_stratigraphy(name = "Stratigraphy", limits = force)
library(ggplot2) strati <- data.frame( name = c("Phanerozoic", "Paleozoic", "Cambrian", "Ordovician", "Silurian", "Devonian", "Carboniferous", "Mesozoic", "Triassic", "Cretaceous", "Jurassic", "Cenozoic", "Paleogene", "Neogene", "Quaternary"), type = c("Eon", "Era", "Period", "Period", "Period", "Period", "Period", "Era", "Period", "Period", "Period", "Era", "Period", "Period", "Period"), start = c(541, 541, 541, 485, 444, 419, 359, 252, 252, 201, 145, 66, 66, 23, 2.6), end = c(0, 252, 485, 444, 419, 359, 252, 66, 201, 145, 66, 2.6, 23, 2.6, 0) ) ## Keep chronological order in the legend strati$name <- factor(strati$name, levels = rev(unique(strati$name)), ordered = TRUE) ## Workaround: use `limits = force` to remove unused values ggplot2::ggplot(strati) + ggplot2::geom_rect(ggplot2::aes(xmin = rep(0, 15), xmax = rep(1, 15), ymin = start, ymax = end, fill = name)) + ggplot2::scale_y_reverse() + ggplot2::facet_grid(. ~ type) + scale_fill_stratigraphy(name = "Stratigraphy", limits = force)
Fabio Crameri's acton Sequential Color Scheme
scale_colour_acton( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_acton( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_acton( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_acton( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_acton( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_acton( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
scale_colour_acton( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_acton( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_acton( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_acton( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_acton( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_acton( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. |
batlow |
256 |
batlowW |
256 |
batlowK |
256 |
devon |
256 |
lajolla |
256 |
bamako |
256 |
davos |
256 |
bilbao |
256 |
nuuk |
256 |
oslo |
256 |
grayC |
256 |
hawaii |
256 |
lapaz |
256 |
tokyo |
256 |
buda |
256 |
acton |
256 |
turku |
256 |
imola |
256 |
oleron * |
256 |
bukavu * |
256 |
fes * |
256 |
*: multisequential color schemes.
N. Frerebeau
Crameri, F. (2021). Scientific colour maps. Zenodo, v7.0. doi:10.5281/zenodo.4491293
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geosci. Model Dev., 11, 2541-2562. doi:10.5194/gmd-11-2541-2018
Crameri, F., Shephard, G. E. & Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11, 5444. doi:10.1038/s41467-020-19160-7
Other sequential color schemes:
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_bilbao
,
scale_crameri_buda
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_nuuk
,
scale_crameri_oslo
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_tol_YlOrBr
,
scale_tol_incandescent
,
scale_tol_iridescent
,
scale_tol_smoothrainbow
Other Fabio Crameri's color schemes:
scale_crameri_bam
,
scale_crameri_bamO
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_berlin
,
scale_crameri_bilbao
,
scale_crameri_broc
,
scale_crameri_brocO
,
scale_crameri_buda
,
scale_crameri_bukavu
,
scale_crameri_cork
,
scale_crameri_corkO
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_fes
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_lisbon
,
scale_crameri_nuuk
,
scale_crameri_oleron
,
scale_crameri_oslo
,
scale_crameri_roma
,
scale_crameri_romaO
,
scale_crameri_tofino
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_crameri_vikO
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_batlow() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_bamako() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_hawaii(reverse = TRUE)
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_batlow() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_bamako() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_hawaii(reverse = TRUE)
Fabio Crameri's bam Diverging Color Scheme
scale_colour_bam( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_color_bam( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_fill_bam( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_bam( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_bam( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_bam( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_fill" )
scale_colour_bam( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_color_bam( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_fill_bam( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_bam( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_bam( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_bam( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
midpoint |
A length-one |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. |
broc |
256 |
cork |
256 |
vik |
256 |
lisbon |
256 |
tofino |
256 |
berlin |
256 |
roma |
256 |
bam |
256 |
vanimo |
256 |
brocO * |
256 |
corkO * |
256 |
vikO * |
256 |
romaO * |
256 |
bamO * |
256 |
*: cyclic color schemes.
N. Frerebeau
Crameri, F. (2021). Scientific colour maps. Zenodo, v7.0. doi:10.5281/zenodo.4491293
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geosci. Model Dev., 11, 2541-2562. doi:10.5194/gmd-11-2541-2018
Crameri, F., Shephard, G. E. & Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11, 5444. doi:10.1038/s41467-020-19160-7
Other diverging color schemes:
scale_crameri_berlin
,
scale_crameri_broc
,
scale_crameri_cork
,
scale_crameri_lisbon
,
scale_crameri_roma
,
scale_crameri_tofino
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_tol_BuRd
,
scale_tol_PRGn
,
scale_tol_nightfall
,
scale_tol_sunset
Other Fabio Crameri's color schemes:
scale_crameri_acton
,
scale_crameri_bamO
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_berlin
,
scale_crameri_bilbao
,
scale_crameri_broc
,
scale_crameri_brocO
,
scale_crameri_buda
,
scale_crameri_bukavu
,
scale_crameri_cork
,
scale_crameri_corkO
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_fes
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_lisbon
,
scale_crameri_nuuk
,
scale_crameri_oleron
,
scale_crameri_oslo
,
scale_crameri_roma
,
scale_crameri_romaO
,
scale_crameri_tofino
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_crameri_vikO
data(economics, package = "ggplot2") ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_broc(reverse = TRUE, midpoint = 12000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_berlin(midpoint = 9000)
data(economics, package = "ggplot2") ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_broc(reverse = TRUE, midpoint = 12000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_berlin(midpoint = 9000)
Fabio Crameri's bamako Sequential Color Scheme
scale_colour_bamako( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_bamako( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_bamako( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_bamako( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_bamako( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_bamako( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
scale_colour_bamako( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_bamako( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_bamako( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_bamako( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_bamako( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_bamako( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. |
batlow |
256 |
batlowW |
256 |
batlowK |
256 |
devon |
256 |
lajolla |
256 |
bamako |
256 |
davos |
256 |
bilbao |
256 |
nuuk |
256 |
oslo |
256 |
grayC |
256 |
hawaii |
256 |
lapaz |
256 |
tokyo |
256 |
buda |
256 |
acton |
256 |
turku |
256 |
imola |
256 |
oleron * |
256 |
bukavu * |
256 |
fes * |
256 |
*: multisequential color schemes.
N. Frerebeau
Crameri, F. (2021). Scientific colour maps. Zenodo, v7.0. doi:10.5281/zenodo.4491293
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geosci. Model Dev., 11, 2541-2562. doi:10.5194/gmd-11-2541-2018
Crameri, F., Shephard, G. E. & Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11, 5444. doi:10.1038/s41467-020-19160-7
Other sequential color schemes:
scale_crameri_acton
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_bilbao
,
scale_crameri_buda
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_nuuk
,
scale_crameri_oslo
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_tol_YlOrBr
,
scale_tol_incandescent
,
scale_tol_iridescent
,
scale_tol_smoothrainbow
Other Fabio Crameri's color schemes:
scale_crameri_acton
,
scale_crameri_bam
,
scale_crameri_bamO
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_berlin
,
scale_crameri_bilbao
,
scale_crameri_broc
,
scale_crameri_brocO
,
scale_crameri_buda
,
scale_crameri_bukavu
,
scale_crameri_cork
,
scale_crameri_corkO
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_fes
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_lisbon
,
scale_crameri_nuuk
,
scale_crameri_oleron
,
scale_crameri_oslo
,
scale_crameri_roma
,
scale_crameri_romaO
,
scale_crameri_tofino
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_crameri_vikO
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_batlow() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_bamako() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_hawaii(reverse = TRUE)
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_batlow() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_bamako() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_hawaii(reverse = TRUE)
Fabio Crameri's bamO Cyclic Color Scheme
scale_colour_bamO( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_bamO( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_bamO( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" )
scale_colour_bamO( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_bamO( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_bamO( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. |
broc |
256 |
cork |
256 |
vik |
256 |
lisbon |
256 |
tofino |
256 |
berlin |
256 |
roma |
256 |
bam |
256 |
vanimo |
256 |
brocO * |
256 |
corkO * |
256 |
vikO * |
256 |
romaO * |
256 |
bamO * |
256 |
*: cyclic color schemes.
N. Frerebeau
Crameri, F. (2021). Scientific colour maps. Zenodo, v7.0. doi:10.5281/zenodo.4491293
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geosci. Model Dev., 11, 2541-2562. doi:10.5194/gmd-11-2541-2018
Crameri, F., Shephard, G. E. & Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11, 5444. doi:10.1038/s41467-020-19160-7
Other cyclic color schemes:
scale_crameri_brocO
,
scale_crameri_corkO
,
scale_crameri_romaO
,
scale_crameri_vikO
Other Fabio Crameri's color schemes:
scale_crameri_acton
,
scale_crameri_bam
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_berlin
,
scale_crameri_bilbao
,
scale_crameri_broc
,
scale_crameri_brocO
,
scale_crameri_buda
,
scale_crameri_bukavu
,
scale_crameri_cork
,
scale_crameri_corkO
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_fes
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_lisbon
,
scale_crameri_nuuk
,
scale_crameri_oleron
,
scale_crameri_oslo
,
scale_crameri_roma
,
scale_crameri_romaO
,
scale_crameri_tofino
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_crameri_vikO
data(economics, package = "ggplot2") ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_broc(reverse = TRUE, midpoint = 12000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_berlin(midpoint = 9000)
data(economics, package = "ggplot2") ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_broc(reverse = TRUE, midpoint = 12000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_berlin(midpoint = 9000)
Fabio Crameri's batlow Sequential Color Scheme
scale_colour_batlow( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_batlow( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_batlow( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_batlow( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_batlow( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_batlow( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
scale_colour_batlow( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_batlow( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_batlow( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_batlow( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_batlow( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_batlow( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. |
batlow |
256 |
batlowW |
256 |
batlowK |
256 |
devon |
256 |
lajolla |
256 |
bamako |
256 |
davos |
256 |
bilbao |
256 |
nuuk |
256 |
oslo |
256 |
grayC |
256 |
hawaii |
256 |
lapaz |
256 |
tokyo |
256 |
buda |
256 |
acton |
256 |
turku |
256 |
imola |
256 |
oleron * |
256 |
bukavu * |
256 |
fes * |
256 |
*: multisequential color schemes.
N. Frerebeau
Crameri, F. (2021). Scientific colour maps. Zenodo, v7.0. doi:10.5281/zenodo.4491293
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geosci. Model Dev., 11, 2541-2562. doi:10.5194/gmd-11-2541-2018
Crameri, F., Shephard, G. E. & Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11, 5444. doi:10.1038/s41467-020-19160-7
Other sequential color schemes:
scale_crameri_acton
,
scale_crameri_bamako
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_bilbao
,
scale_crameri_buda
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_nuuk
,
scale_crameri_oslo
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_tol_YlOrBr
,
scale_tol_incandescent
,
scale_tol_iridescent
,
scale_tol_smoothrainbow
Other Fabio Crameri's color schemes:
scale_crameri_acton
,
scale_crameri_bam
,
scale_crameri_bamO
,
scale_crameri_bamako
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_berlin
,
scale_crameri_bilbao
,
scale_crameri_broc
,
scale_crameri_brocO
,
scale_crameri_buda
,
scale_crameri_bukavu
,
scale_crameri_cork
,
scale_crameri_corkO
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_fes
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_lisbon
,
scale_crameri_nuuk
,
scale_crameri_oleron
,
scale_crameri_oslo
,
scale_crameri_roma
,
scale_crameri_romaO
,
scale_crameri_tofino
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_crameri_vikO
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_batlow() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_bamako() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_hawaii(reverse = TRUE)
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_batlow() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_bamako() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_hawaii(reverse = TRUE)
Fabio Crameri's batlowK Sequential Color Scheme
scale_colour_batlowK( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_batlowK( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_batlowK( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_batlowK( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_batlowK( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_batlowK( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
scale_colour_batlowK( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_batlowK( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_batlowK( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_batlowK( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_batlowK( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_batlowK( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. |
batlow |
256 |
batlowW |
256 |
batlowK |
256 |
devon |
256 |
lajolla |
256 |
bamako |
256 |
davos |
256 |
bilbao |
256 |
nuuk |
256 |
oslo |
256 |
grayC |
256 |
hawaii |
256 |
lapaz |
256 |
tokyo |
256 |
buda |
256 |
acton |
256 |
turku |
256 |
imola |
256 |
oleron * |
256 |
bukavu * |
256 |
fes * |
256 |
*: multisequential color schemes.
N. Frerebeau
Crameri, F. (2021). Scientific colour maps. Zenodo, v7.0. doi:10.5281/zenodo.4491293
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geosci. Model Dev., 11, 2541-2562. doi:10.5194/gmd-11-2541-2018
Crameri, F., Shephard, G. E. & Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11, 5444. doi:10.1038/s41467-020-19160-7
Other sequential color schemes:
scale_crameri_acton
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowW
,
scale_crameri_bilbao
,
scale_crameri_buda
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_nuuk
,
scale_crameri_oslo
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_tol_YlOrBr
,
scale_tol_incandescent
,
scale_tol_iridescent
,
scale_tol_smoothrainbow
Other Fabio Crameri's color schemes:
scale_crameri_acton
,
scale_crameri_bam
,
scale_crameri_bamO
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowW
,
scale_crameri_berlin
,
scale_crameri_bilbao
,
scale_crameri_broc
,
scale_crameri_brocO
,
scale_crameri_buda
,
scale_crameri_bukavu
,
scale_crameri_cork
,
scale_crameri_corkO
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_fes
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_lisbon
,
scale_crameri_nuuk
,
scale_crameri_oleron
,
scale_crameri_oslo
,
scale_crameri_roma
,
scale_crameri_romaO
,
scale_crameri_tofino
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_crameri_vikO
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_batlow() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_bamako() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_hawaii(reverse = TRUE)
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_batlow() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_bamako() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_hawaii(reverse = TRUE)
Fabio Crameri's batlowW Sequential Color Scheme
scale_colour_batlowW( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_batlowW( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_batlowW( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_batlowW( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_batlowW( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_batlowW( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
scale_colour_batlowW( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_batlowW( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_batlowW( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_batlowW( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_batlowW( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_batlowW( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. |
batlow |
256 |
batlowW |
256 |
batlowK |
256 |
devon |
256 |
lajolla |
256 |
bamako |
256 |
davos |
256 |
bilbao |
256 |
nuuk |
256 |
oslo |
256 |
grayC |
256 |
hawaii |
256 |
lapaz |
256 |
tokyo |
256 |
buda |
256 |
acton |
256 |
turku |
256 |
imola |
256 |
oleron * |
256 |
bukavu * |
256 |
fes * |
256 |
*: multisequential color schemes.
N. Frerebeau
Crameri, F. (2021). Scientific colour maps. Zenodo, v7.0. doi:10.5281/zenodo.4491293
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geosci. Model Dev., 11, 2541-2562. doi:10.5194/gmd-11-2541-2018
Crameri, F., Shephard, G. E. & Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11, 5444. doi:10.1038/s41467-020-19160-7
Other sequential color schemes:
scale_crameri_acton
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_bilbao
,
scale_crameri_buda
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_nuuk
,
scale_crameri_oslo
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_tol_YlOrBr
,
scale_tol_incandescent
,
scale_tol_iridescent
,
scale_tol_smoothrainbow
Other Fabio Crameri's color schemes:
scale_crameri_acton
,
scale_crameri_bam
,
scale_crameri_bamO
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_berlin
,
scale_crameri_bilbao
,
scale_crameri_broc
,
scale_crameri_brocO
,
scale_crameri_buda
,
scale_crameri_bukavu
,
scale_crameri_cork
,
scale_crameri_corkO
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_fes
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_lisbon
,
scale_crameri_nuuk
,
scale_crameri_oleron
,
scale_crameri_oslo
,
scale_crameri_roma
,
scale_crameri_romaO
,
scale_crameri_tofino
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_crameri_vikO
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_batlow() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_bamako() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_hawaii(reverse = TRUE)
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_batlow() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_bamako() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_hawaii(reverse = TRUE)
Fabio Crameri's berlin Diverging Color Scheme
scale_colour_berlin( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_color_berlin( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_fill_berlin( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_berlin( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_berlin( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_berlin( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_fill" )
scale_colour_berlin( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_color_berlin( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_fill_berlin( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_berlin( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_berlin( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_berlin( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
midpoint |
A length-one |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. |
broc |
256 |
cork |
256 |
vik |
256 |
lisbon |
256 |
tofino |
256 |
berlin |
256 |
roma |
256 |
bam |
256 |
vanimo |
256 |
brocO * |
256 |
corkO * |
256 |
vikO * |
256 |
romaO * |
256 |
bamO * |
256 |
*: cyclic color schemes.
N. Frerebeau
Crameri, F. (2021). Scientific colour maps. Zenodo, v7.0. doi:10.5281/zenodo.4491293
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geosci. Model Dev., 11, 2541-2562. doi:10.5194/gmd-11-2541-2018
Crameri, F., Shephard, G. E. & Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11, 5444. doi:10.1038/s41467-020-19160-7
Other diverging color schemes:
scale_crameri_bam
,
scale_crameri_broc
,
scale_crameri_cork
,
scale_crameri_lisbon
,
scale_crameri_roma
,
scale_crameri_tofino
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_tol_BuRd
,
scale_tol_PRGn
,
scale_tol_nightfall
,
scale_tol_sunset
Other Fabio Crameri's color schemes:
scale_crameri_acton
,
scale_crameri_bam
,
scale_crameri_bamO
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_bilbao
,
scale_crameri_broc
,
scale_crameri_brocO
,
scale_crameri_buda
,
scale_crameri_bukavu
,
scale_crameri_cork
,
scale_crameri_corkO
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_fes
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_lisbon
,
scale_crameri_nuuk
,
scale_crameri_oleron
,
scale_crameri_oslo
,
scale_crameri_roma
,
scale_crameri_romaO
,
scale_crameri_tofino
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_crameri_vikO
data(economics, package = "ggplot2") ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_broc(reverse = TRUE, midpoint = 12000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_berlin(midpoint = 9000)
data(economics, package = "ggplot2") ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_broc(reverse = TRUE, midpoint = 12000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_berlin(midpoint = 9000)
Fabio Crameri's bilbao Sequential Color Scheme
scale_colour_bilbao( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_bilbao( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_bilbao( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_bilbao( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_bilbao( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_bilbao( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
scale_colour_bilbao( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_bilbao( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_bilbao( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_bilbao( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_bilbao( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_bilbao( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. |
batlow |
256 |
batlowW |
256 |
batlowK |
256 |
devon |
256 |
lajolla |
256 |
bamako |
256 |
davos |
256 |
bilbao |
256 |
nuuk |
256 |
oslo |
256 |
grayC |
256 |
hawaii |
256 |
lapaz |
256 |
tokyo |
256 |
buda |
256 |
acton |
256 |
turku |
256 |
imola |
256 |
oleron * |
256 |
bukavu * |
256 |
fes * |
256 |
*: multisequential color schemes.
N. Frerebeau
Crameri, F. (2021). Scientific colour maps. Zenodo, v7.0. doi:10.5281/zenodo.4491293
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geosci. Model Dev., 11, 2541-2562. doi:10.5194/gmd-11-2541-2018
Crameri, F., Shephard, G. E. & Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11, 5444. doi:10.1038/s41467-020-19160-7
Other sequential color schemes:
scale_crameri_acton
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_buda
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_nuuk
,
scale_crameri_oslo
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_tol_YlOrBr
,
scale_tol_incandescent
,
scale_tol_iridescent
,
scale_tol_smoothrainbow
Other Fabio Crameri's color schemes:
scale_crameri_acton
,
scale_crameri_bam
,
scale_crameri_bamO
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_berlin
,
scale_crameri_broc
,
scale_crameri_brocO
,
scale_crameri_buda
,
scale_crameri_bukavu
,
scale_crameri_cork
,
scale_crameri_corkO
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_fes
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_lisbon
,
scale_crameri_nuuk
,
scale_crameri_oleron
,
scale_crameri_oslo
,
scale_crameri_roma
,
scale_crameri_romaO
,
scale_crameri_tofino
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_crameri_vikO
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_batlow() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_bamako() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_hawaii(reverse = TRUE)
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_batlow() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_bamako() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_hawaii(reverse = TRUE)
Fabio Crameri's broc Diverging Color Scheme
scale_colour_broc( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_color_broc( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_fill_broc( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_broc( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_broc( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_broc( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_fill" )
scale_colour_broc( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_color_broc( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_fill_broc( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_broc( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_broc( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_broc( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
midpoint |
A length-one |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. |
broc |
256 |
cork |
256 |
vik |
256 |
lisbon |
256 |
tofino |
256 |
berlin |
256 |
roma |
256 |
bam |
256 |
vanimo |
256 |
brocO * |
256 |
corkO * |
256 |
vikO * |
256 |
romaO * |
256 |
bamO * |
256 |
*: cyclic color schemes.
N. Frerebeau
Crameri, F. (2021). Scientific colour maps. Zenodo, v7.0. doi:10.5281/zenodo.4491293
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geosci. Model Dev., 11, 2541-2562. doi:10.5194/gmd-11-2541-2018
Crameri, F., Shephard, G. E. & Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11, 5444. doi:10.1038/s41467-020-19160-7
Other diverging color schemes:
scale_crameri_bam
,
scale_crameri_berlin
,
scale_crameri_cork
,
scale_crameri_lisbon
,
scale_crameri_roma
,
scale_crameri_tofino
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_tol_BuRd
,
scale_tol_PRGn
,
scale_tol_nightfall
,
scale_tol_sunset
Other Fabio Crameri's color schemes:
scale_crameri_acton
,
scale_crameri_bam
,
scale_crameri_bamO
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_berlin
,
scale_crameri_bilbao
,
scale_crameri_brocO
,
scale_crameri_buda
,
scale_crameri_bukavu
,
scale_crameri_cork
,
scale_crameri_corkO
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_fes
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_lisbon
,
scale_crameri_nuuk
,
scale_crameri_oleron
,
scale_crameri_oslo
,
scale_crameri_roma
,
scale_crameri_romaO
,
scale_crameri_tofino
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_crameri_vikO
data(economics, package = "ggplot2") ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_broc(reverse = TRUE, midpoint = 12000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_berlin(midpoint = 9000)
data(economics, package = "ggplot2") ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_broc(reverse = TRUE, midpoint = 12000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_berlin(midpoint = 9000)
Fabio Crameri's brocO Cyclic Color Scheme
scale_colour_brocO( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_brocO( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_brocO( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" )
scale_colour_brocO( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_brocO( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_brocO( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. |
broc |
256 |
cork |
256 |
vik |
256 |
lisbon |
256 |
tofino |
256 |
berlin |
256 |
roma |
256 |
bam |
256 |
vanimo |
256 |
brocO * |
256 |
corkO * |
256 |
vikO * |
256 |
romaO * |
256 |
bamO * |
256 |
*: cyclic color schemes.
N. Frerebeau
Crameri, F. (2021). Scientific colour maps. Zenodo, v7.0. doi:10.5281/zenodo.4491293
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geosci. Model Dev., 11, 2541-2562. doi:10.5194/gmd-11-2541-2018
Crameri, F., Shephard, G. E. & Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11, 5444. doi:10.1038/s41467-020-19160-7
Other cyclic color schemes:
scale_crameri_bamO
,
scale_crameri_corkO
,
scale_crameri_romaO
,
scale_crameri_vikO
Other Fabio Crameri's color schemes:
scale_crameri_acton
,
scale_crameri_bam
,
scale_crameri_bamO
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_berlin
,
scale_crameri_bilbao
,
scale_crameri_broc
,
scale_crameri_buda
,
scale_crameri_bukavu
,
scale_crameri_cork
,
scale_crameri_corkO
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_fes
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_lisbon
,
scale_crameri_nuuk
,
scale_crameri_oleron
,
scale_crameri_oslo
,
scale_crameri_roma
,
scale_crameri_romaO
,
scale_crameri_tofino
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_crameri_vikO
data(economics, package = "ggplot2") ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_broc(reverse = TRUE, midpoint = 12000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_berlin(midpoint = 9000)
data(economics, package = "ggplot2") ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_broc(reverse = TRUE, midpoint = 12000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_berlin(midpoint = 9000)
Fabio Crameri's buda Sequential Color Scheme
scale_colour_buda( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_buda( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_buda( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_buda( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_buda( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_buda( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
scale_colour_buda( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_buda( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_buda( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_buda( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_buda( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_buda( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. |
batlow |
256 |
batlowW |
256 |
batlowK |
256 |
devon |
256 |
lajolla |
256 |
bamako |
256 |
davos |
256 |
bilbao |
256 |
nuuk |
256 |
oslo |
256 |
grayC |
256 |
hawaii |
256 |
lapaz |
256 |
tokyo |
256 |
buda |
256 |
acton |
256 |
turku |
256 |
imola |
256 |
oleron * |
256 |
bukavu * |
256 |
fes * |
256 |
*: multisequential color schemes.
N. Frerebeau
Crameri, F. (2021). Scientific colour maps. Zenodo, v7.0. doi:10.5281/zenodo.4491293
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geosci. Model Dev., 11, 2541-2562. doi:10.5194/gmd-11-2541-2018
Crameri, F., Shephard, G. E. & Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11, 5444. doi:10.1038/s41467-020-19160-7
Other sequential color schemes:
scale_crameri_acton
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_bilbao
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_nuuk
,
scale_crameri_oslo
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_tol_YlOrBr
,
scale_tol_incandescent
,
scale_tol_iridescent
,
scale_tol_smoothrainbow
Other Fabio Crameri's color schemes:
scale_crameri_acton
,
scale_crameri_bam
,
scale_crameri_bamO
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_berlin
,
scale_crameri_bilbao
,
scale_crameri_broc
,
scale_crameri_brocO
,
scale_crameri_bukavu
,
scale_crameri_cork
,
scale_crameri_corkO
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_fes
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_lisbon
,
scale_crameri_nuuk
,
scale_crameri_oleron
,
scale_crameri_oslo
,
scale_crameri_roma
,
scale_crameri_romaO
,
scale_crameri_tofino
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_crameri_vikO
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_batlow() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_bamako() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_hawaii(reverse = TRUE)
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_batlow() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_bamako() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_hawaii(reverse = TRUE)
Fabio Crameri's bukavu Multi-Sequential Color Scheme
scale_colour_bukavu( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, aesthetics = "colour" ) scale_color_bukavu( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, aesthetics = "colour" ) scale_fill_bukavu( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, aesthetics = "fill" )
scale_colour_bukavu( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, aesthetics = "colour" ) scale_color_bukavu( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, aesthetics = "colour" ) scale_fill_bukavu( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, aesthetics = "fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
midpoint |
A length-one |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. |
batlow |
256 |
batlowW |
256 |
batlowK |
256 |
devon |
256 |
lajolla |
256 |
bamako |
256 |
davos |
256 |
bilbao |
256 |
nuuk |
256 |
oslo |
256 |
grayC |
256 |
hawaii |
256 |
lapaz |
256 |
tokyo |
256 |
buda |
256 |
acton |
256 |
turku |
256 |
imola |
256 |
oleron * |
256 |
bukavu * |
256 |
fes * |
256 |
*: multisequential color schemes.
N. Frerebeau
Crameri, F. (2021). Scientific colour maps. Zenodo, v7.0. doi:10.5281/zenodo.4491293
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geosci. Model Dev., 11, 2541-2562. doi:10.5194/gmd-11-2541-2018
Crameri, F., Shephard, G. E. & Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11, 5444. doi:10.1038/s41467-020-19160-7
Other multi sequential color schemes:
scale_crameri_fes
,
scale_crameri_oleron
Other Fabio Crameri's color schemes:
scale_crameri_acton
,
scale_crameri_bam
,
scale_crameri_bamO
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_berlin
,
scale_crameri_bilbao
,
scale_crameri_broc
,
scale_crameri_brocO
,
scale_crameri_buda
,
scale_crameri_cork
,
scale_crameri_corkO
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_fes
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_lisbon
,
scale_crameri_nuuk
,
scale_crameri_oleron
,
scale_crameri_oslo
,
scale_crameri_roma
,
scale_crameri_romaO
,
scale_crameri_tofino
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_crameri_vikO
data(volcano) volcan <- data.frame( x = rep(1:ncol(volcano), each = nrow(volcano)), y = rep(1:nrow(volcano), times = ncol(volcano)), z = as.numeric(volcano) ) ggplot2::ggplot(volcan, ggplot2::aes(x, y, fill = z)) + ggplot2::geom_raster() + scale_fill_oleron(midpoint = 125)
data(volcano) volcan <- data.frame( x = rep(1:ncol(volcano), each = nrow(volcano)), y = rep(1:nrow(volcano), times = ncol(volcano)), z = as.numeric(volcano) ) ggplot2::ggplot(volcan, ggplot2::aes(x, y, fill = z)) + ggplot2::geom_raster() + scale_fill_oleron(midpoint = 125)
Fabio Crameri's cork Diverging Color Scheme
scale_colour_cork( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_color_cork( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_fill_cork( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_cork( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_cork( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_cork( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_fill" )
scale_colour_cork( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_color_cork( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_fill_cork( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_cork( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_cork( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_cork( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
midpoint |
A length-one |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. |
broc |
256 |
cork |
256 |
vik |
256 |
lisbon |
256 |
tofino |
256 |
berlin |
256 |
roma |
256 |
bam |
256 |
vanimo |
256 |
brocO * |
256 |
corkO * |
256 |
vikO * |
256 |
romaO * |
256 |
bamO * |
256 |
*: cyclic color schemes.
N. Frerebeau
Crameri, F. (2021). Scientific colour maps. Zenodo, v7.0. doi:10.5281/zenodo.4491293
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geosci. Model Dev., 11, 2541-2562. doi:10.5194/gmd-11-2541-2018
Crameri, F., Shephard, G. E. & Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11, 5444. doi:10.1038/s41467-020-19160-7
Other diverging color schemes:
scale_crameri_bam
,
scale_crameri_berlin
,
scale_crameri_broc
,
scale_crameri_lisbon
,
scale_crameri_roma
,
scale_crameri_tofino
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_tol_BuRd
,
scale_tol_PRGn
,
scale_tol_nightfall
,
scale_tol_sunset
Other Fabio Crameri's color schemes:
scale_crameri_acton
,
scale_crameri_bam
,
scale_crameri_bamO
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_berlin
,
scale_crameri_bilbao
,
scale_crameri_broc
,
scale_crameri_brocO
,
scale_crameri_buda
,
scale_crameri_bukavu
,
scale_crameri_corkO
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_fes
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_lisbon
,
scale_crameri_nuuk
,
scale_crameri_oleron
,
scale_crameri_oslo
,
scale_crameri_roma
,
scale_crameri_romaO
,
scale_crameri_tofino
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_crameri_vikO
data(economics, package = "ggplot2") ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_broc(reverse = TRUE, midpoint = 12000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_berlin(midpoint = 9000)
data(economics, package = "ggplot2") ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_broc(reverse = TRUE, midpoint = 12000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_berlin(midpoint = 9000)
Fabio Crameri's corkO Cyclic Color Scheme
scale_colour_corkO( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_corkO( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_corkO( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" )
scale_colour_corkO( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_corkO( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_corkO( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. |
broc |
256 |
cork |
256 |
vik |
256 |
lisbon |
256 |
tofino |
256 |
berlin |
256 |
roma |
256 |
bam |
256 |
vanimo |
256 |
brocO * |
256 |
corkO * |
256 |
vikO * |
256 |
romaO * |
256 |
bamO * |
256 |
*: cyclic color schemes.
N. Frerebeau
Crameri, F. (2021). Scientific colour maps. Zenodo, v7.0. doi:10.5281/zenodo.4491293
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geosci. Model Dev., 11, 2541-2562. doi:10.5194/gmd-11-2541-2018
Crameri, F., Shephard, G. E. & Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11, 5444. doi:10.1038/s41467-020-19160-7
Other cyclic color schemes:
scale_crameri_bamO
,
scale_crameri_brocO
,
scale_crameri_romaO
,
scale_crameri_vikO
Other Fabio Crameri's color schemes:
scale_crameri_acton
,
scale_crameri_bam
,
scale_crameri_bamO
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_berlin
,
scale_crameri_bilbao
,
scale_crameri_broc
,
scale_crameri_brocO
,
scale_crameri_buda
,
scale_crameri_bukavu
,
scale_crameri_cork
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_fes
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_lisbon
,
scale_crameri_nuuk
,
scale_crameri_oleron
,
scale_crameri_oslo
,
scale_crameri_roma
,
scale_crameri_romaO
,
scale_crameri_tofino
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_crameri_vikO
data(economics, package = "ggplot2") ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_broc(reverse = TRUE, midpoint = 12000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_berlin(midpoint = 9000)
data(economics, package = "ggplot2") ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_broc(reverse = TRUE, midpoint = 12000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_berlin(midpoint = 9000)
Fabio Crameri's davos Sequential Color Scheme
scale_colour_davos( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_davos( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_davos( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_davos( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_davos( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_davos( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
scale_colour_davos( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_davos( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_davos( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_davos( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_davos( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_davos( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. |
batlow |
256 |
batlowW |
256 |
batlowK |
256 |
devon |
256 |
lajolla |
256 |
bamako |
256 |
davos |
256 |
bilbao |
256 |
nuuk |
256 |
oslo |
256 |
grayC |
256 |
hawaii |
256 |
lapaz |
256 |
tokyo |
256 |
buda |
256 |
acton |
256 |
turku |
256 |
imola |
256 |
oleron * |
256 |
bukavu * |
256 |
fes * |
256 |
*: multisequential color schemes.
N. Frerebeau
Crameri, F. (2021). Scientific colour maps. Zenodo, v7.0. doi:10.5281/zenodo.4491293
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geosci. Model Dev., 11, 2541-2562. doi:10.5194/gmd-11-2541-2018
Crameri, F., Shephard, G. E. & Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11, 5444. doi:10.1038/s41467-020-19160-7
Other sequential color schemes:
scale_crameri_acton
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_bilbao
,
scale_crameri_buda
,
scale_crameri_devon
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_nuuk
,
scale_crameri_oslo
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_tol_YlOrBr
,
scale_tol_incandescent
,
scale_tol_iridescent
,
scale_tol_smoothrainbow
Other Fabio Crameri's color schemes:
scale_crameri_acton
,
scale_crameri_bam
,
scale_crameri_bamO
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_berlin
,
scale_crameri_bilbao
,
scale_crameri_broc
,
scale_crameri_brocO
,
scale_crameri_buda
,
scale_crameri_bukavu
,
scale_crameri_cork
,
scale_crameri_corkO
,
scale_crameri_devon
,
scale_crameri_fes
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_lisbon
,
scale_crameri_nuuk
,
scale_crameri_oleron
,
scale_crameri_oslo
,
scale_crameri_roma
,
scale_crameri_romaO
,
scale_crameri_tofino
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_crameri_vikO
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_batlow() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_bamako() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_hawaii(reverse = TRUE)
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_batlow() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_bamako() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_hawaii(reverse = TRUE)
Fabio Crameri's devon Sequential Color Scheme
scale_colour_devon( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_devon( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_devon( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_devon( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_devon( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_devon( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
scale_colour_devon( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_devon( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_devon( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_devon( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_devon( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_devon( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. |
batlow |
256 |
batlowW |
256 |
batlowK |
256 |
devon |
256 |
lajolla |
256 |
bamako |
256 |
davos |
256 |
bilbao |
256 |
nuuk |
256 |
oslo |
256 |
grayC |
256 |
hawaii |
256 |
lapaz |
256 |
tokyo |
256 |
buda |
256 |
acton |
256 |
turku |
256 |
imola |
256 |
oleron * |
256 |
bukavu * |
256 |
fes * |
256 |
*: multisequential color schemes.
N. Frerebeau
Crameri, F. (2021). Scientific colour maps. Zenodo, v7.0. doi:10.5281/zenodo.4491293
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geosci. Model Dev., 11, 2541-2562. doi:10.5194/gmd-11-2541-2018
Crameri, F., Shephard, G. E. & Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11, 5444. doi:10.1038/s41467-020-19160-7
Other sequential color schemes:
scale_crameri_acton
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_bilbao
,
scale_crameri_buda
,
scale_crameri_davos
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_nuuk
,
scale_crameri_oslo
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_tol_YlOrBr
,
scale_tol_incandescent
,
scale_tol_iridescent
,
scale_tol_smoothrainbow
Other Fabio Crameri's color schemes:
scale_crameri_acton
,
scale_crameri_bam
,
scale_crameri_bamO
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_berlin
,
scale_crameri_bilbao
,
scale_crameri_broc
,
scale_crameri_brocO
,
scale_crameri_buda
,
scale_crameri_bukavu
,
scale_crameri_cork
,
scale_crameri_corkO
,
scale_crameri_davos
,
scale_crameri_fes
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_lisbon
,
scale_crameri_nuuk
,
scale_crameri_oleron
,
scale_crameri_oslo
,
scale_crameri_roma
,
scale_crameri_romaO
,
scale_crameri_tofino
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_crameri_vikO
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_batlow() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_bamako() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_hawaii(reverse = TRUE)
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_batlow() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_bamako() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_hawaii(reverse = TRUE)
Fabio Crameri's fes Multi-Sequential Color Scheme
scale_colour_fes( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, aesthetics = "colour" ) scale_color_fes( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, aesthetics = "colour" ) scale_fill_fes( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, aesthetics = "fill" )
scale_colour_fes( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, aesthetics = "colour" ) scale_color_fes( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, aesthetics = "colour" ) scale_fill_fes( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, aesthetics = "fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
midpoint |
A length-one |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. |
batlow |
256 |
batlowW |
256 |
batlowK |
256 |
devon |
256 |
lajolla |
256 |
bamako |
256 |
davos |
256 |
bilbao |
256 |
nuuk |
256 |
oslo |
256 |
grayC |
256 |
hawaii |
256 |
lapaz |
256 |
tokyo |
256 |
buda |
256 |
acton |
256 |
turku |
256 |
imola |
256 |
oleron * |
256 |
bukavu * |
256 |
fes * |
256 |
*: multisequential color schemes.
N. Frerebeau
Crameri, F. (2021). Scientific colour maps. Zenodo, v7.0. doi:10.5281/zenodo.4491293
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geosci. Model Dev., 11, 2541-2562. doi:10.5194/gmd-11-2541-2018
Crameri, F., Shephard, G. E. & Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11, 5444. doi:10.1038/s41467-020-19160-7
Other multi sequential color schemes:
scale_crameri_bukavu
,
scale_crameri_oleron
Other Fabio Crameri's color schemes:
scale_crameri_acton
,
scale_crameri_bam
,
scale_crameri_bamO
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_berlin
,
scale_crameri_bilbao
,
scale_crameri_broc
,
scale_crameri_brocO
,
scale_crameri_buda
,
scale_crameri_bukavu
,
scale_crameri_cork
,
scale_crameri_corkO
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_lisbon
,
scale_crameri_nuuk
,
scale_crameri_oleron
,
scale_crameri_oslo
,
scale_crameri_roma
,
scale_crameri_romaO
,
scale_crameri_tofino
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_crameri_vikO
data(volcano) volcan <- data.frame( x = rep(1:ncol(volcano), each = nrow(volcano)), y = rep(1:nrow(volcano), times = ncol(volcano)), z = as.numeric(volcano) ) ggplot2::ggplot(volcan, ggplot2::aes(x, y, fill = z)) + ggplot2::geom_raster() + scale_fill_oleron(midpoint = 125)
data(volcano) volcan <- data.frame( x = rep(1:ncol(volcano), each = nrow(volcano)), y = rep(1:nrow(volcano), times = ncol(volcano)), z = as.numeric(volcano) ) ggplot2::ggplot(volcan, ggplot2::aes(x, y, fill = z)) + ggplot2::geom_raster() + scale_fill_oleron(midpoint = 125)
Fabio Crameri's grayC Sequential Color Scheme
scale_colour_grayC( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_grayC( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_grayC( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_grayC( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_grayC( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_grayC( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
scale_colour_grayC( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_grayC( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_grayC( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_grayC( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_grayC( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_grayC( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. |
batlow |
256 |
batlowW |
256 |
batlowK |
256 |
devon |
256 |
lajolla |
256 |
bamako |
256 |
davos |
256 |
bilbao |
256 |
nuuk |
256 |
oslo |
256 |
grayC |
256 |
hawaii |
256 |
lapaz |
256 |
tokyo |
256 |
buda |
256 |
acton |
256 |
turku |
256 |
imola |
256 |
oleron * |
256 |
bukavu * |
256 |
fes * |
256 |
*: multisequential color schemes.
N. Frerebeau
Crameri, F. (2021). Scientific colour maps. Zenodo, v7.0. doi:10.5281/zenodo.4491293
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geosci. Model Dev., 11, 2541-2562. doi:10.5194/gmd-11-2541-2018
Crameri, F., Shephard, G. E. & Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11, 5444. doi:10.1038/s41467-020-19160-7
Other sequential color schemes:
scale_crameri_acton
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_bilbao
,
scale_crameri_buda
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_nuuk
,
scale_crameri_oslo
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_tol_YlOrBr
,
scale_tol_incandescent
,
scale_tol_iridescent
,
scale_tol_smoothrainbow
Other Fabio Crameri's color schemes:
scale_crameri_acton
,
scale_crameri_bam
,
scale_crameri_bamO
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_berlin
,
scale_crameri_bilbao
,
scale_crameri_broc
,
scale_crameri_brocO
,
scale_crameri_buda
,
scale_crameri_bukavu
,
scale_crameri_cork
,
scale_crameri_corkO
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_fes
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_lisbon
,
scale_crameri_nuuk
,
scale_crameri_oleron
,
scale_crameri_oslo
,
scale_crameri_roma
,
scale_crameri_romaO
,
scale_crameri_tofino
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_crameri_vikO
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_batlow() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_bamako() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_hawaii(reverse = TRUE)
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_batlow() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_bamako() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_hawaii(reverse = TRUE)
Fabio Crameri's hawaii Sequential Color Scheme
scale_colour_hawaii( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_hawaii( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_hawaii( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_hawaii( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_hawaii( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_hawaii( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
scale_colour_hawaii( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_hawaii( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_hawaii( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_hawaii( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_hawaii( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_hawaii( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. |
batlow |
256 |
batlowW |
256 |
batlowK |
256 |
devon |
256 |
lajolla |
256 |
bamako |
256 |
davos |
256 |
bilbao |
256 |
nuuk |
256 |
oslo |
256 |
grayC |
256 |
hawaii |
256 |
lapaz |
256 |
tokyo |
256 |
buda |
256 |
acton |
256 |
turku |
256 |
imola |
256 |
oleron * |
256 |
bukavu * |
256 |
fes * |
256 |
*: multisequential color schemes.
N. Frerebeau
Crameri, F. (2021). Scientific colour maps. Zenodo, v7.0. doi:10.5281/zenodo.4491293
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geosci. Model Dev., 11, 2541-2562. doi:10.5194/gmd-11-2541-2018
Crameri, F., Shephard, G. E. & Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11, 5444. doi:10.1038/s41467-020-19160-7
Other sequential color schemes:
scale_crameri_acton
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_bilbao
,
scale_crameri_buda
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_grayC
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_nuuk
,
scale_crameri_oslo
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_tol_YlOrBr
,
scale_tol_incandescent
,
scale_tol_iridescent
,
scale_tol_smoothrainbow
Other Fabio Crameri's color schemes:
scale_crameri_acton
,
scale_crameri_bam
,
scale_crameri_bamO
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_berlin
,
scale_crameri_bilbao
,
scale_crameri_broc
,
scale_crameri_brocO
,
scale_crameri_buda
,
scale_crameri_bukavu
,
scale_crameri_cork
,
scale_crameri_corkO
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_fes
,
scale_crameri_grayC
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_lisbon
,
scale_crameri_nuuk
,
scale_crameri_oleron
,
scale_crameri_oslo
,
scale_crameri_roma
,
scale_crameri_romaO
,
scale_crameri_tofino
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_crameri_vikO
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_batlow() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_bamako() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_hawaii(reverse = TRUE)
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_batlow() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_bamako() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_hawaii(reverse = TRUE)
Fabio Crameri's imola Sequential Color Scheme
scale_colour_imola( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_imola( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_imola( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_imola( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_imola( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_imola( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
scale_colour_imola( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_imola( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_imola( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_imola( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_imola( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_imola( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. |
batlow |
256 |
batlowW |
256 |
batlowK |
256 |
devon |
256 |
lajolla |
256 |
bamako |
256 |
davos |
256 |
bilbao |
256 |
nuuk |
256 |
oslo |
256 |
grayC |
256 |
hawaii |
256 |
lapaz |
256 |
tokyo |
256 |
buda |
256 |
acton |
256 |
turku |
256 |
imola |
256 |
oleron * |
256 |
bukavu * |
256 |
fes * |
256 |
*: multisequential color schemes.
N. Frerebeau
Crameri, F. (2021). Scientific colour maps. Zenodo, v7.0. doi:10.5281/zenodo.4491293
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geosci. Model Dev., 11, 2541-2562. doi:10.5194/gmd-11-2541-2018
Crameri, F., Shephard, G. E. & Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11, 5444. doi:10.1038/s41467-020-19160-7
Other sequential color schemes:
scale_crameri_acton
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_bilbao
,
scale_crameri_buda
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_nuuk
,
scale_crameri_oslo
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_tol_YlOrBr
,
scale_tol_incandescent
,
scale_tol_iridescent
,
scale_tol_smoothrainbow
Other Fabio Crameri's color schemes:
scale_crameri_acton
,
scale_crameri_bam
,
scale_crameri_bamO
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_berlin
,
scale_crameri_bilbao
,
scale_crameri_broc
,
scale_crameri_brocO
,
scale_crameri_buda
,
scale_crameri_bukavu
,
scale_crameri_cork
,
scale_crameri_corkO
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_fes
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_lisbon
,
scale_crameri_nuuk
,
scale_crameri_oleron
,
scale_crameri_oslo
,
scale_crameri_roma
,
scale_crameri_romaO
,
scale_crameri_tofino
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_crameri_vikO
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_batlow() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_bamako() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_hawaii(reverse = TRUE)
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_batlow() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_bamako() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_hawaii(reverse = TRUE)
Fabio Crameri's lajolla Sequential Color Scheme
scale_colour_lajolla( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_lajolla( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_lajolla( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_lajolla( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_lajolla( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_lajolla( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
scale_colour_lajolla( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_lajolla( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_lajolla( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_lajolla( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_lajolla( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_lajolla( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. |
batlow |
256 |
batlowW |
256 |
batlowK |
256 |
devon |
256 |
lajolla |
256 |
bamako |
256 |
davos |
256 |
bilbao |
256 |
nuuk |
256 |
oslo |
256 |
grayC |
256 |
hawaii |
256 |
lapaz |
256 |
tokyo |
256 |
buda |
256 |
acton |
256 |
turku |
256 |
imola |
256 |
oleron * |
256 |
bukavu * |
256 |
fes * |
256 |
*: multisequential color schemes.
N. Frerebeau
Crameri, F. (2021). Scientific colour maps. Zenodo, v7.0. doi:10.5281/zenodo.4491293
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geosci. Model Dev., 11, 2541-2562. doi:10.5194/gmd-11-2541-2018
Crameri, F., Shephard, G. E. & Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11, 5444. doi:10.1038/s41467-020-19160-7
Other sequential color schemes:
scale_crameri_acton
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_bilbao
,
scale_crameri_buda
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lapaz
,
scale_crameri_nuuk
,
scale_crameri_oslo
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_tol_YlOrBr
,
scale_tol_incandescent
,
scale_tol_iridescent
,
scale_tol_smoothrainbow
Other Fabio Crameri's color schemes:
scale_crameri_acton
,
scale_crameri_bam
,
scale_crameri_bamO
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_berlin
,
scale_crameri_bilbao
,
scale_crameri_broc
,
scale_crameri_brocO
,
scale_crameri_buda
,
scale_crameri_bukavu
,
scale_crameri_cork
,
scale_crameri_corkO
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_fes
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lapaz
,
scale_crameri_lisbon
,
scale_crameri_nuuk
,
scale_crameri_oleron
,
scale_crameri_oslo
,
scale_crameri_roma
,
scale_crameri_romaO
,
scale_crameri_tofino
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_crameri_vikO
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_batlow() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_bamako() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_hawaii(reverse = TRUE)
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_batlow() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_bamako() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_hawaii(reverse = TRUE)
Fabio Crameri's lapaz Sequential Color Scheme
scale_colour_lapaz( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_lapaz( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_lapaz( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_lapaz( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_lapaz( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_lapaz( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
scale_colour_lapaz( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_lapaz( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_lapaz( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_lapaz( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_lapaz( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_lapaz( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. |
batlow |
256 |
batlowW |
256 |
batlowK |
256 |
devon |
256 |
lajolla |
256 |
bamako |
256 |
davos |
256 |
bilbao |
256 |
nuuk |
256 |
oslo |
256 |
grayC |
256 |
hawaii |
256 |
lapaz |
256 |
tokyo |
256 |
buda |
256 |
acton |
256 |
turku |
256 |
imola |
256 |
oleron * |
256 |
bukavu * |
256 |
fes * |
256 |
*: multisequential color schemes.
N. Frerebeau
Crameri, F. (2021). Scientific colour maps. Zenodo, v7.0. doi:10.5281/zenodo.4491293
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geosci. Model Dev., 11, 2541-2562. doi:10.5194/gmd-11-2541-2018
Crameri, F., Shephard, G. E. & Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11, 5444. doi:10.1038/s41467-020-19160-7
Other sequential color schemes:
scale_crameri_acton
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_bilbao
,
scale_crameri_buda
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_nuuk
,
scale_crameri_oslo
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_tol_YlOrBr
,
scale_tol_incandescent
,
scale_tol_iridescent
,
scale_tol_smoothrainbow
Other Fabio Crameri's color schemes:
scale_crameri_acton
,
scale_crameri_bam
,
scale_crameri_bamO
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_berlin
,
scale_crameri_bilbao
,
scale_crameri_broc
,
scale_crameri_brocO
,
scale_crameri_buda
,
scale_crameri_bukavu
,
scale_crameri_cork
,
scale_crameri_corkO
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_fes
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lisbon
,
scale_crameri_nuuk
,
scale_crameri_oleron
,
scale_crameri_oslo
,
scale_crameri_roma
,
scale_crameri_romaO
,
scale_crameri_tofino
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_crameri_vikO
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_batlow() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_bamako() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_hawaii(reverse = TRUE)
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_batlow() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_bamako() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_hawaii(reverse = TRUE)
Fabio Crameri's lisbon Diverging Color Scheme
scale_colour_lisbon( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_color_lisbon( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_fill_lisbon( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_lisbon( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_lisbon( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_lisbon( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_fill" )
scale_colour_lisbon( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_color_lisbon( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_fill_lisbon( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_lisbon( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_lisbon( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_lisbon( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
midpoint |
A length-one |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. |
broc |
256 |
cork |
256 |
vik |
256 |
lisbon |
256 |
tofino |
256 |
berlin |
256 |
roma |
256 |
bam |
256 |
vanimo |
256 |
brocO * |
256 |
corkO * |
256 |
vikO * |
256 |
romaO * |
256 |
bamO * |
256 |
*: cyclic color schemes.
N. Frerebeau
Crameri, F. (2021). Scientific colour maps. Zenodo, v7.0. doi:10.5281/zenodo.4491293
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geosci. Model Dev., 11, 2541-2562. doi:10.5194/gmd-11-2541-2018
Crameri, F., Shephard, G. E. & Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11, 5444. doi:10.1038/s41467-020-19160-7
Other diverging color schemes:
scale_crameri_bam
,
scale_crameri_berlin
,
scale_crameri_broc
,
scale_crameri_cork
,
scale_crameri_roma
,
scale_crameri_tofino
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_tol_BuRd
,
scale_tol_PRGn
,
scale_tol_nightfall
,
scale_tol_sunset
Other Fabio Crameri's color schemes:
scale_crameri_acton
,
scale_crameri_bam
,
scale_crameri_bamO
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_berlin
,
scale_crameri_bilbao
,
scale_crameri_broc
,
scale_crameri_brocO
,
scale_crameri_buda
,
scale_crameri_bukavu
,
scale_crameri_cork
,
scale_crameri_corkO
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_fes
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_nuuk
,
scale_crameri_oleron
,
scale_crameri_oslo
,
scale_crameri_roma
,
scale_crameri_romaO
,
scale_crameri_tofino
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_crameri_vikO
data(economics, package = "ggplot2") ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_broc(reverse = TRUE, midpoint = 12000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_berlin(midpoint = 9000)
data(economics, package = "ggplot2") ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_broc(reverse = TRUE, midpoint = 12000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_berlin(midpoint = 9000)
Fabio Crameri's nuuk Sequential Color Scheme
scale_colour_nuuk( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_nuuk( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_nuuk( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_nuuk( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_nuuk( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_nuuk( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
scale_colour_nuuk( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_nuuk( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_nuuk( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_nuuk( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_nuuk( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_nuuk( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. |
batlow |
256 |
batlowW |
256 |
batlowK |
256 |
devon |
256 |
lajolla |
256 |
bamako |
256 |
davos |
256 |
bilbao |
256 |
nuuk |
256 |
oslo |
256 |
grayC |
256 |
hawaii |
256 |
lapaz |
256 |
tokyo |
256 |
buda |
256 |
acton |
256 |
turku |
256 |
imola |
256 |
oleron * |
256 |
bukavu * |
256 |
fes * |
256 |
*: multisequential color schemes.
N. Frerebeau
Crameri, F. (2021). Scientific colour maps. Zenodo, v7.0. doi:10.5281/zenodo.4491293
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geosci. Model Dev., 11, 2541-2562. doi:10.5194/gmd-11-2541-2018
Crameri, F., Shephard, G. E. & Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11, 5444. doi:10.1038/s41467-020-19160-7
Other sequential color schemes:
scale_crameri_acton
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_bilbao
,
scale_crameri_buda
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_oslo
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_tol_YlOrBr
,
scale_tol_incandescent
,
scale_tol_iridescent
,
scale_tol_smoothrainbow
Other Fabio Crameri's color schemes:
scale_crameri_acton
,
scale_crameri_bam
,
scale_crameri_bamO
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_berlin
,
scale_crameri_bilbao
,
scale_crameri_broc
,
scale_crameri_brocO
,
scale_crameri_buda
,
scale_crameri_bukavu
,
scale_crameri_cork
,
scale_crameri_corkO
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_fes
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_lisbon
,
scale_crameri_oleron
,
scale_crameri_oslo
,
scale_crameri_roma
,
scale_crameri_romaO
,
scale_crameri_tofino
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_crameri_vikO
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_batlow() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_bamako() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_hawaii(reverse = TRUE)
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_batlow() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_bamako() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_hawaii(reverse = TRUE)
Fabio Crameri's oleron Multi-Sequential Color Scheme
scale_colour_oleron( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, aesthetics = "colour" ) scale_color_oleron( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, aesthetics = "colour" ) scale_fill_oleron( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, aesthetics = "fill" )
scale_colour_oleron( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, aesthetics = "colour" ) scale_color_oleron( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, aesthetics = "colour" ) scale_fill_oleron( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, aesthetics = "fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
midpoint |
A length-one |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. |
batlow |
256 |
batlowW |
256 |
batlowK |
256 |
devon |
256 |
lajolla |
256 |
bamako |
256 |
davos |
256 |
bilbao |
256 |
nuuk |
256 |
oslo |
256 |
grayC |
256 |
hawaii |
256 |
lapaz |
256 |
tokyo |
256 |
buda |
256 |
acton |
256 |
turku |
256 |
imola |
256 |
oleron * |
256 |
bukavu * |
256 |
fes * |
256 |
*: multisequential color schemes.
N. Frerebeau
Crameri, F. (2021). Scientific colour maps. Zenodo, v7.0. doi:10.5281/zenodo.4491293
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geosci. Model Dev., 11, 2541-2562. doi:10.5194/gmd-11-2541-2018
Crameri, F., Shephard, G. E. & Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11, 5444. doi:10.1038/s41467-020-19160-7
Other multi sequential color schemes:
scale_crameri_bukavu
,
scale_crameri_fes
Other Fabio Crameri's color schemes:
scale_crameri_acton
,
scale_crameri_bam
,
scale_crameri_bamO
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_berlin
,
scale_crameri_bilbao
,
scale_crameri_broc
,
scale_crameri_brocO
,
scale_crameri_buda
,
scale_crameri_bukavu
,
scale_crameri_cork
,
scale_crameri_corkO
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_fes
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_lisbon
,
scale_crameri_nuuk
,
scale_crameri_oslo
,
scale_crameri_roma
,
scale_crameri_romaO
,
scale_crameri_tofino
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_crameri_vikO
data(volcano) volcan <- data.frame( x = rep(1:ncol(volcano), each = nrow(volcano)), y = rep(1:nrow(volcano), times = ncol(volcano)), z = as.numeric(volcano) ) ggplot2::ggplot(volcan, ggplot2::aes(x, y, fill = z)) + ggplot2::geom_raster() + scale_fill_oleron(midpoint = 125)
data(volcano) volcan <- data.frame( x = rep(1:ncol(volcano), each = nrow(volcano)), y = rep(1:nrow(volcano), times = ncol(volcano)), z = as.numeric(volcano) ) ggplot2::ggplot(volcan, ggplot2::aes(x, y, fill = z)) + ggplot2::geom_raster() + scale_fill_oleron(midpoint = 125)
Fabio Crameri's oslo Sequential Color Scheme
scale_colour_oslo( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_oslo( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_oslo( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_oslo( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_oslo( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_oslo( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
scale_colour_oslo( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_oslo( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_oslo( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_oslo( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_oslo( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_oslo( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. |
batlow |
256 |
batlowW |
256 |
batlowK |
256 |
devon |
256 |
lajolla |
256 |
bamako |
256 |
davos |
256 |
bilbao |
256 |
nuuk |
256 |
oslo |
256 |
grayC |
256 |
hawaii |
256 |
lapaz |
256 |
tokyo |
256 |
buda |
256 |
acton |
256 |
turku |
256 |
imola |
256 |
oleron * |
256 |
bukavu * |
256 |
fes * |
256 |
*: multisequential color schemes.
N. Frerebeau
Crameri, F. (2021). Scientific colour maps. Zenodo, v7.0. doi:10.5281/zenodo.4491293
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geosci. Model Dev., 11, 2541-2562. doi:10.5194/gmd-11-2541-2018
Crameri, F., Shephard, G. E. & Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11, 5444. doi:10.1038/s41467-020-19160-7
Other sequential color schemes:
scale_crameri_acton
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_bilbao
,
scale_crameri_buda
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_nuuk
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_tol_YlOrBr
,
scale_tol_incandescent
,
scale_tol_iridescent
,
scale_tol_smoothrainbow
Other Fabio Crameri's color schemes:
scale_crameri_acton
,
scale_crameri_bam
,
scale_crameri_bamO
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_berlin
,
scale_crameri_bilbao
,
scale_crameri_broc
,
scale_crameri_brocO
,
scale_crameri_buda
,
scale_crameri_bukavu
,
scale_crameri_cork
,
scale_crameri_corkO
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_fes
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_lisbon
,
scale_crameri_nuuk
,
scale_crameri_oleron
,
scale_crameri_roma
,
scale_crameri_romaO
,
scale_crameri_tofino
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_crameri_vikO
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_batlow() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_bamako() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_hawaii(reverse = TRUE)
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_batlow() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_bamako() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_hawaii(reverse = TRUE)
Fabio Crameri's roma Diverging Color Scheme
scale_colour_roma( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_color_roma( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_fill_roma( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_roma( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_roma( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_roma( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_fill" )
scale_colour_roma( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_color_roma( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_fill_roma( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_roma( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_roma( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_roma( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
midpoint |
A length-one |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. |
broc |
256 |
cork |
256 |
vik |
256 |
lisbon |
256 |
tofino |
256 |
berlin |
256 |
roma |
256 |
bam |
256 |
vanimo |
256 |
brocO * |
256 |
corkO * |
256 |
vikO * |
256 |
romaO * |
256 |
bamO * |
256 |
*: cyclic color schemes.
N. Frerebeau
Crameri, F. (2021). Scientific colour maps. Zenodo, v7.0. doi:10.5281/zenodo.4491293
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geosci. Model Dev., 11, 2541-2562. doi:10.5194/gmd-11-2541-2018
Crameri, F., Shephard, G. E. & Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11, 5444. doi:10.1038/s41467-020-19160-7
Other diverging color schemes:
scale_crameri_bam
,
scale_crameri_berlin
,
scale_crameri_broc
,
scale_crameri_cork
,
scale_crameri_lisbon
,
scale_crameri_tofino
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_tol_BuRd
,
scale_tol_PRGn
,
scale_tol_nightfall
,
scale_tol_sunset
Other Fabio Crameri's color schemes:
scale_crameri_acton
,
scale_crameri_bam
,
scale_crameri_bamO
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_berlin
,
scale_crameri_bilbao
,
scale_crameri_broc
,
scale_crameri_brocO
,
scale_crameri_buda
,
scale_crameri_bukavu
,
scale_crameri_cork
,
scale_crameri_corkO
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_fes
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_lisbon
,
scale_crameri_nuuk
,
scale_crameri_oleron
,
scale_crameri_oslo
,
scale_crameri_romaO
,
scale_crameri_tofino
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_crameri_vikO
data(economics, package = "ggplot2") ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_broc(reverse = TRUE, midpoint = 12000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_berlin(midpoint = 9000)
data(economics, package = "ggplot2") ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_broc(reverse = TRUE, midpoint = 12000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_berlin(midpoint = 9000)
Fabio Crameri's romaO Cyclic Color Scheme
scale_colour_romaO( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_romaO( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_romaO( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" )
scale_colour_romaO( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_romaO( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_romaO( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. |
broc |
256 |
cork |
256 |
vik |
256 |
lisbon |
256 |
tofino |
256 |
berlin |
256 |
roma |
256 |
bam |
256 |
vanimo |
256 |
brocO * |
256 |
corkO * |
256 |
vikO * |
256 |
romaO * |
256 |
bamO * |
256 |
*: cyclic color schemes.
N. Frerebeau
Crameri, F. (2021). Scientific colour maps. Zenodo, v7.0. doi:10.5281/zenodo.4491293
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geosci. Model Dev., 11, 2541-2562. doi:10.5194/gmd-11-2541-2018
Crameri, F., Shephard, G. E. & Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11, 5444. doi:10.1038/s41467-020-19160-7
Other cyclic color schemes:
scale_crameri_bamO
,
scale_crameri_brocO
,
scale_crameri_corkO
,
scale_crameri_vikO
Other Fabio Crameri's color schemes:
scale_crameri_acton
,
scale_crameri_bam
,
scale_crameri_bamO
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_berlin
,
scale_crameri_bilbao
,
scale_crameri_broc
,
scale_crameri_brocO
,
scale_crameri_buda
,
scale_crameri_bukavu
,
scale_crameri_cork
,
scale_crameri_corkO
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_fes
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_lisbon
,
scale_crameri_nuuk
,
scale_crameri_oleron
,
scale_crameri_oslo
,
scale_crameri_roma
,
scale_crameri_tofino
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_crameri_vikO
data(economics, package = "ggplot2") ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_broc(reverse = TRUE, midpoint = 12000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_berlin(midpoint = 9000)
data(economics, package = "ggplot2") ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_broc(reverse = TRUE, midpoint = 12000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_berlin(midpoint = 9000)
Fabio Crameri's tofino Diverging Color Scheme
scale_colour_tofino( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_color_tofino( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_fill_tofino( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_tofino( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_tofino( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_tofino( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_fill" )
scale_colour_tofino( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_color_tofino( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_fill_tofino( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_tofino( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_tofino( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_tofino( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
midpoint |
A length-one |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. |
broc |
256 |
cork |
256 |
vik |
256 |
lisbon |
256 |
tofino |
256 |
berlin |
256 |
roma |
256 |
bam |
256 |
vanimo |
256 |
brocO * |
256 |
corkO * |
256 |
vikO * |
256 |
romaO * |
256 |
bamO * |
256 |
*: cyclic color schemes.
N. Frerebeau
Crameri, F. (2021). Scientific colour maps. Zenodo, v7.0. doi:10.5281/zenodo.4491293
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geosci. Model Dev., 11, 2541-2562. doi:10.5194/gmd-11-2541-2018
Crameri, F., Shephard, G. E. & Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11, 5444. doi:10.1038/s41467-020-19160-7
Other diverging color schemes:
scale_crameri_bam
,
scale_crameri_berlin
,
scale_crameri_broc
,
scale_crameri_cork
,
scale_crameri_lisbon
,
scale_crameri_roma
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_tol_BuRd
,
scale_tol_PRGn
,
scale_tol_nightfall
,
scale_tol_sunset
Other Fabio Crameri's color schemes:
scale_crameri_acton
,
scale_crameri_bam
,
scale_crameri_bamO
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_berlin
,
scale_crameri_bilbao
,
scale_crameri_broc
,
scale_crameri_brocO
,
scale_crameri_buda
,
scale_crameri_bukavu
,
scale_crameri_cork
,
scale_crameri_corkO
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_fes
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_lisbon
,
scale_crameri_nuuk
,
scale_crameri_oleron
,
scale_crameri_oslo
,
scale_crameri_roma
,
scale_crameri_romaO
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_crameri_vikO
data(economics, package = "ggplot2") ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_broc(reverse = TRUE, midpoint = 12000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_berlin(midpoint = 9000)
data(economics, package = "ggplot2") ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_broc(reverse = TRUE, midpoint = 12000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_berlin(midpoint = 9000)
Fabio Crameri's tokyo Sequential Color Scheme
scale_colour_tokyo( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_tokyo( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_tokyo( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_tokyo( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_tokyo( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_tokyo( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
scale_colour_tokyo( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_tokyo( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_tokyo( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_tokyo( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_tokyo( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_tokyo( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. |
batlow |
256 |
batlowW |
256 |
batlowK |
256 |
devon |
256 |
lajolla |
256 |
bamako |
256 |
davos |
256 |
bilbao |
256 |
nuuk |
256 |
oslo |
256 |
grayC |
256 |
hawaii |
256 |
lapaz |
256 |
tokyo |
256 |
buda |
256 |
acton |
256 |
turku |
256 |
imola |
256 |
oleron * |
256 |
bukavu * |
256 |
fes * |
256 |
*: multisequential color schemes.
N. Frerebeau
Crameri, F. (2021). Scientific colour maps. Zenodo, v7.0. doi:10.5281/zenodo.4491293
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geosci. Model Dev., 11, 2541-2562. doi:10.5194/gmd-11-2541-2018
Crameri, F., Shephard, G. E. & Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11, 5444. doi:10.1038/s41467-020-19160-7
Other sequential color schemes:
scale_crameri_acton
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_bilbao
,
scale_crameri_buda
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_nuuk
,
scale_crameri_oslo
,
scale_crameri_turku
,
scale_tol_YlOrBr
,
scale_tol_incandescent
,
scale_tol_iridescent
,
scale_tol_smoothrainbow
Other Fabio Crameri's color schemes:
scale_crameri_acton
,
scale_crameri_bam
,
scale_crameri_bamO
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_berlin
,
scale_crameri_bilbao
,
scale_crameri_broc
,
scale_crameri_brocO
,
scale_crameri_buda
,
scale_crameri_bukavu
,
scale_crameri_cork
,
scale_crameri_corkO
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_fes
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_lisbon
,
scale_crameri_nuuk
,
scale_crameri_oleron
,
scale_crameri_oslo
,
scale_crameri_roma
,
scale_crameri_romaO
,
scale_crameri_tofino
,
scale_crameri_turku
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_crameri_vikO
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_batlow() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_bamako() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_hawaii(reverse = TRUE)
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_batlow() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_bamako() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_hawaii(reverse = TRUE)
Fabio Crameri's turku Sequential Color Scheme
scale_colour_turku( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_turku( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_turku( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_turku( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_turku( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_turku( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
scale_colour_turku( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_turku( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_turku( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_turku( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_turku( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_turku( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. |
batlow |
256 |
batlowW |
256 |
batlowK |
256 |
devon |
256 |
lajolla |
256 |
bamako |
256 |
davos |
256 |
bilbao |
256 |
nuuk |
256 |
oslo |
256 |
grayC |
256 |
hawaii |
256 |
lapaz |
256 |
tokyo |
256 |
buda |
256 |
acton |
256 |
turku |
256 |
imola |
256 |
oleron * |
256 |
bukavu * |
256 |
fes * |
256 |
*: multisequential color schemes.
N. Frerebeau
Crameri, F. (2021). Scientific colour maps. Zenodo, v7.0. doi:10.5281/zenodo.4491293
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geosci. Model Dev., 11, 2541-2562. doi:10.5194/gmd-11-2541-2018
Crameri, F., Shephard, G. E. & Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11, 5444. doi:10.1038/s41467-020-19160-7
Other sequential color schemes:
scale_crameri_acton
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_bilbao
,
scale_crameri_buda
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_nuuk
,
scale_crameri_oslo
,
scale_crameri_tokyo
,
scale_tol_YlOrBr
,
scale_tol_incandescent
,
scale_tol_iridescent
,
scale_tol_smoothrainbow
Other Fabio Crameri's color schemes:
scale_crameri_acton
,
scale_crameri_bam
,
scale_crameri_bamO
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_berlin
,
scale_crameri_bilbao
,
scale_crameri_broc
,
scale_crameri_brocO
,
scale_crameri_buda
,
scale_crameri_bukavu
,
scale_crameri_cork
,
scale_crameri_corkO
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_fes
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_lisbon
,
scale_crameri_nuuk
,
scale_crameri_oleron
,
scale_crameri_oslo
,
scale_crameri_roma
,
scale_crameri_romaO
,
scale_crameri_tofino
,
scale_crameri_tokyo
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_crameri_vikO
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_batlow() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_bamako() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_hawaii(reverse = TRUE)
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_batlow() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_bamako() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_hawaii(reverse = TRUE)
Fabio Crameri's vanimo Diverging Color Scheme
scale_colour_vanimo( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_color_vanimo( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_fill_vanimo( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_vanimo( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_vanimo( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_vanimo( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_fill" )
scale_colour_vanimo( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_color_vanimo( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_fill_vanimo( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_vanimo( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_vanimo( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_vanimo( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
midpoint |
A length-one |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. |
broc |
256 |
cork |
256 |
vik |
256 |
lisbon |
256 |
tofino |
256 |
berlin |
256 |
roma |
256 |
bam |
256 |
vanimo |
256 |
brocO * |
256 |
corkO * |
256 |
vikO * |
256 |
romaO * |
256 |
bamO * |
256 |
*: cyclic color schemes.
N. Frerebeau
Crameri, F. (2021). Scientific colour maps. Zenodo, v7.0. doi:10.5281/zenodo.4491293
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geosci. Model Dev., 11, 2541-2562. doi:10.5194/gmd-11-2541-2018
Crameri, F., Shephard, G. E. & Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11, 5444. doi:10.1038/s41467-020-19160-7
Other diverging color schemes:
scale_crameri_bam
,
scale_crameri_berlin
,
scale_crameri_broc
,
scale_crameri_cork
,
scale_crameri_lisbon
,
scale_crameri_roma
,
scale_crameri_tofino
,
scale_crameri_vik
,
scale_tol_BuRd
,
scale_tol_PRGn
,
scale_tol_nightfall
,
scale_tol_sunset
Other Fabio Crameri's color schemes:
scale_crameri_acton
,
scale_crameri_bam
,
scale_crameri_bamO
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_berlin
,
scale_crameri_bilbao
,
scale_crameri_broc
,
scale_crameri_brocO
,
scale_crameri_buda
,
scale_crameri_bukavu
,
scale_crameri_cork
,
scale_crameri_corkO
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_fes
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_lisbon
,
scale_crameri_nuuk
,
scale_crameri_oleron
,
scale_crameri_oslo
,
scale_crameri_roma
,
scale_crameri_romaO
,
scale_crameri_tofino
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_crameri_vik
,
scale_crameri_vikO
data(economics, package = "ggplot2") ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_broc(reverse = TRUE, midpoint = 12000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_berlin(midpoint = 9000)
data(economics, package = "ggplot2") ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_broc(reverse = TRUE, midpoint = 12000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_berlin(midpoint = 9000)
Fabio Crameri's vik Diverging Color Scheme
scale_colour_vik( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_color_vik( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_fill_vik( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_vik( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_vik( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_vik( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_fill" )
scale_colour_vik( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_color_vik( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_fill_vik( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_vik( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_vik( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_vik( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
midpoint |
A length-one |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. |
broc |
256 |
cork |
256 |
vik |
256 |
lisbon |
256 |
tofino |
256 |
berlin |
256 |
roma |
256 |
bam |
256 |
vanimo |
256 |
brocO * |
256 |
corkO * |
256 |
vikO * |
256 |
romaO * |
256 |
bamO * |
256 |
*: cyclic color schemes.
N. Frerebeau
Crameri, F. (2021). Scientific colour maps. Zenodo, v7.0. doi:10.5281/zenodo.4491293
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geosci. Model Dev., 11, 2541-2562. doi:10.5194/gmd-11-2541-2018
Crameri, F., Shephard, G. E. & Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11, 5444. doi:10.1038/s41467-020-19160-7
Other diverging color schemes:
scale_crameri_bam
,
scale_crameri_berlin
,
scale_crameri_broc
,
scale_crameri_cork
,
scale_crameri_lisbon
,
scale_crameri_roma
,
scale_crameri_tofino
,
scale_crameri_vanimo
,
scale_tol_BuRd
,
scale_tol_PRGn
,
scale_tol_nightfall
,
scale_tol_sunset
Other Fabio Crameri's color schemes:
scale_crameri_acton
,
scale_crameri_bam
,
scale_crameri_bamO
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_berlin
,
scale_crameri_bilbao
,
scale_crameri_broc
,
scale_crameri_brocO
,
scale_crameri_buda
,
scale_crameri_bukavu
,
scale_crameri_cork
,
scale_crameri_corkO
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_fes
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_lisbon
,
scale_crameri_nuuk
,
scale_crameri_oleron
,
scale_crameri_oslo
,
scale_crameri_roma
,
scale_crameri_romaO
,
scale_crameri_tofino
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_crameri_vanimo
,
scale_crameri_vikO
data(economics, package = "ggplot2") ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_broc(reverse = TRUE, midpoint = 12000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_berlin(midpoint = 9000)
data(economics, package = "ggplot2") ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_broc(reverse = TRUE, midpoint = 12000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_berlin(midpoint = 9000)
Fabio Crameri's vikO Cyclic Color Scheme
scale_colour_vikO( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_vikO( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_vikO( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" )
scale_colour_vikO( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_vikO( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_vikO( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. |
broc |
256 |
cork |
256 |
vik |
256 |
lisbon |
256 |
tofino |
256 |
berlin |
256 |
roma |
256 |
bam |
256 |
vanimo |
256 |
brocO * |
256 |
corkO * |
256 |
vikO * |
256 |
romaO * |
256 |
bamO * |
256 |
*: cyclic color schemes.
N. Frerebeau
Crameri, F. (2021). Scientific colour maps. Zenodo, v7.0. doi:10.5281/zenodo.4491293
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geosci. Model Dev., 11, 2541-2562. doi:10.5194/gmd-11-2541-2018
Crameri, F., Shephard, G. E. & Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications, 11, 5444. doi:10.1038/s41467-020-19160-7
Other cyclic color schemes:
scale_crameri_bamO
,
scale_crameri_brocO
,
scale_crameri_corkO
,
scale_crameri_romaO
Other Fabio Crameri's color schemes:
scale_crameri_acton
,
scale_crameri_bam
,
scale_crameri_bamO
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_berlin
,
scale_crameri_bilbao
,
scale_crameri_broc
,
scale_crameri_brocO
,
scale_crameri_buda
,
scale_crameri_bukavu
,
scale_crameri_cork
,
scale_crameri_corkO
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_fes
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_lisbon
,
scale_crameri_nuuk
,
scale_crameri_oleron
,
scale_crameri_oslo
,
scale_crameri_roma
,
scale_crameri_romaO
,
scale_crameri_tofino
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_crameri_vanimo
,
scale_crameri_vik
data(economics, package = "ggplot2") ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_broc(reverse = TRUE, midpoint = 12000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_berlin(midpoint = 9000)
data(economics, package = "ggplot2") ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_broc(reverse = TRUE, midpoint = 12000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_colour_berlin(midpoint = 9000)
Provides the qualitative color scale from Okabe and Ito 2008.
scale_colour_okabeito( ..., reverse = FALSE, black_position = c("first", "last"), aesthetics = "colour" ) scale_color_okabeito( ..., reverse = FALSE, black_position = c("first", "last"), aesthetics = "colour" ) scale_fill_okabeito( ..., reverse = FALSE, black_position = c("first", "last"), aesthetics = "fill" ) scale_edge_colour_okabeito( ..., reverse = FALSE, black_position = c("first", "last"), aesthetics = "edge_colour" ) scale_edge_color_okabeito( ..., reverse = FALSE, black_position = c("first", "last"), aesthetics = "edge_colour" ) scale_edge_fill_okabeito( ..., reverse = FALSE, black_position = c("first", "last"), aesthetics = "edge_fill" )
scale_colour_okabeito( ..., reverse = FALSE, black_position = c("first", "last"), aesthetics = "colour" ) scale_color_okabeito( ..., reverse = FALSE, black_position = c("first", "last"), aesthetics = "colour" ) scale_fill_okabeito( ..., reverse = FALSE, black_position = c("first", "last"), aesthetics = "fill" ) scale_edge_colour_okabeito( ..., reverse = FALSE, black_position = c("first", "last"), aesthetics = "edge_colour" ) scale_edge_color_okabeito( ..., reverse = FALSE, black_position = c("first", "last"), aesthetics = "edge_colour" ) scale_edge_fill_okabeito( ..., reverse = FALSE, black_position = c("first", "last"), aesthetics = "edge_fill" )
... |
Arguments passed to |
reverse |
A |
black_position |
A |
aesthetics |
A |
This qualitative color scheme is used as given (no interpolation): colors are picked up to the maximum number of supported values (8).
A discrete scale.
N. Frerebeau
Okabe, M. & Ito, K. (2008). Color Universal Design (CUD): How to Make Figures and Presentations That Are Friendly to Colorblind People. URL: https://jfly.uni-koeln.de/color/.
Other qualitative color schemes:
scale_colour_land()
,
scale_colour_soil()
,
scale_colour_stratigraphy()
,
scale_tol_bright
,
scale_tol_dark
,
scale_tol_discreterainbow
,
scale_tol_highcontrast
,
scale_tol_light
,
scale_tol_mediumcontrast
,
scale_tol_muted
,
scale_tol_pale
,
scale_tol_vibrant
library(ggplot2) ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_okabeito() ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_okabeito(black_position = "last")
library(ggplot2) ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_okabeito() ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_okabeito(black_position = "last")
Builds a color scale for ggplot2 or ggraph.
scale_colour_picker(..., palette = "YlOrBr") scale_color_picker(..., palette = "YlOrBr") scale_fill_picker(..., palette = "YlOrBr") scale_edge_colour_picker(..., palette = "YlOrBr") scale_edge_color_picker(..., palette = "YlOrBr") scale_edge_fill_picker(..., palette = "YlOrBr")
scale_colour_picker(..., palette = "YlOrBr") scale_color_picker(..., palette = "YlOrBr") scale_fill_picker(..., palette = "YlOrBr") scale_edge_colour_picker(..., palette = "YlOrBr") scale_edge_color_picker(..., palette = "YlOrBr") scale_edge_fill_picker(..., palette = "YlOrBr")
... |
Extra parameters to be passed to the color scale function. |
palette |
A |
A discrete or continuous scale.
N. Frerebeau
library(ggplot2) ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_picker(palette = "okabeito")
library(ggplot2) ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_picker(palette = "okabeito")
Paul Tol's bright Discrete Color Scheme
scale_colour_bright(..., reverse = FALSE, aesthetics = "colour") scale_color_bright(..., reverse = FALSE, aesthetics = "colour") scale_fill_bright(..., reverse = FALSE, aesthetics = "fill") scale_edge_colour_bright(..., reverse = FALSE, aesthetics = "edge_colour") scale_edge_color_bright(..., reverse = FALSE, aesthetics = "edge_colour") scale_edge_fill_bright(..., reverse = FALSE, aesthetics = "edge_fill")
scale_colour_bright(..., reverse = FALSE, aesthetics = "colour") scale_color_bright(..., reverse = FALSE, aesthetics = "colour") scale_fill_bright(..., reverse = FALSE, aesthetics = "fill") scale_edge_colour_bright(..., reverse = FALSE, aesthetics = "edge_colour") scale_edge_color_bright(..., reverse = FALSE, aesthetics = "edge_colour") scale_edge_fill_bright(..., reverse = FALSE, aesthetics = "edge_fill")
... |
Arguments passed to |
reverse |
A |
aesthetics |
A |
A discrete scale.
The qualitative color schemes are used as given (no interpolation): colors are picked up to the maximum number of supported values.
Palette | Max. |
bright |
7 |
highcontrast |
3 |
vibrant |
7 |
muted |
9 |
mediumcontrast |
6 |
pale |
6 |
dark |
6 |
light |
9 |
According to Paul Tol's technical note, the bright
, highcontrast
,
vibrant
and muted
color schemes are color-blind safe. The
mediumcontrast
color scheme is designed for situations needing color
pairs.
The light
color scheme is reasonably distinct for both normal or
colorblind vision and is intended to fill labeled cells.
The pale
and dark
schemes are not very distinct in either normal or
colorblind vision and should be used as a text background or to highlight
a cell in a table.
Refer to the original document for details about the recommended uses (see references)
N. Frerebeau
Tol, P. (2021). Colour Schemes. SRON. Technical Note No. SRON/EPS/TN/09-002, issue 3.2. URL: https://personal.sron.nl/~pault/data/colourschemes.pdf
Other qualitative color schemes:
scale_colour_land()
,
scale_colour_soil()
,
scale_colour_stratigraphy()
,
scale_okabeito_discrete
,
scale_tol_dark
,
scale_tol_discreterainbow
,
scale_tol_highcontrast
,
scale_tol_light
,
scale_tol_mediumcontrast
,
scale_tol_muted
,
scale_tol_pale
,
scale_tol_vibrant
Other Paul Tol's color schemes:
scale_tol_BuRd
,
scale_tol_PRGn
,
scale_tol_YlOrBr
,
scale_tol_dark
,
scale_tol_discreterainbow
,
scale_tol_highcontrast
,
scale_tol_incandescent
,
scale_tol_iridescent
,
scale_tol_light
,
scale_tol_mediumcontrast
,
scale_tol_muted
,
scale_tol_nightfall
,
scale_tol_pale
,
scale_tol_smoothrainbow
,
scale_tol_sunset
,
scale_tol_vibrant
data(mpg, package = "ggplot2") ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_bright() ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_vibrant() data(diamonds, package = "ggplot2") ggplot2::ggplot(diamonds, ggplot2::aes(clarity, fill = cut)) + ggplot2::geom_bar() + scale_fill_muted()
data(mpg, package = "ggplot2") ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_bright() ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_vibrant() data(diamonds, package = "ggplot2") ggplot2::ggplot(diamonds, ggplot2::aes(clarity, fill = cut)) + ggplot2::geom_bar() + scale_fill_muted()
Paul Tol's BuRd Diverging Color Scheme
scale_colour_BuRd( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_color_BuRd( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_fill_BuRd( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_BuRd( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_BuRd( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_BuRd( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_fill" )
scale_colour_BuRd( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_color_BuRd( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_fill_BuRd( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_BuRd( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_BuRd( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_BuRd( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
midpoint |
A length-one |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. | NA value |
sunset |
11 | #FFFFFF |
nightfall |
17 | #FFFFFF |
BuRd |
9 | #FFEE99 |
PRGn |
9 | #FFEE99 |
N. Frerebeau
Tol, P. (2018). Colour Schemes. SRON. Technical Note No. SRON/EPS/TN/09-002, issue 3.1. URL: https://personal.sron.nl/~pault/data/colourschemes.pdf
Other diverging color schemes:
scale_crameri_bam
,
scale_crameri_berlin
,
scale_crameri_broc
,
scale_crameri_cork
,
scale_crameri_lisbon
,
scale_crameri_roma
,
scale_crameri_tofino
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_tol_PRGn
,
scale_tol_nightfall
,
scale_tol_sunset
Other Paul Tol's color schemes:
scale_tol_PRGn
,
scale_tol_YlOrBr
,
scale_tol_bright
,
scale_tol_dark
,
scale_tol_discreterainbow
,
scale_tol_highcontrast
,
scale_tol_incandescent
,
scale_tol_iridescent
,
scale_tol_light
,
scale_tol_mediumcontrast
,
scale_tol_muted
,
scale_tol_nightfall
,
scale_tol_pale
,
scale_tol_smoothrainbow
,
scale_tol_sunset
,
scale_tol_vibrant
data(economics, package = "ggplot2") ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_color_sunset(reverse = TRUE, midpoint = 12000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_color_BuRd(midpoint = 9000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_color_PRGn(midpoint = 9000, range = c(0.25, 1))
data(economics, package = "ggplot2") ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_color_sunset(reverse = TRUE, midpoint = 12000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_color_BuRd(midpoint = 9000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_color_PRGn(midpoint = 9000, range = c(0.25, 1))
Paul Tol's dark Discrete Color Scheme
scale_colour_dark(..., reverse = FALSE, aesthetics = "colour") scale_color_dark(..., reverse = FALSE, aesthetics = "colour") scale_fill_dark(..., reverse = FALSE, aesthetics = "fill") scale_edge_colour_dark(..., reverse = FALSE, aesthetics = "edge_colour") scale_edge_color_dark(..., reverse = FALSE, aesthetics = "edge_colour") scale_edge_fill_dark(..., reverse = FALSE, aesthetics = "edge_fill")
scale_colour_dark(..., reverse = FALSE, aesthetics = "colour") scale_color_dark(..., reverse = FALSE, aesthetics = "colour") scale_fill_dark(..., reverse = FALSE, aesthetics = "fill") scale_edge_colour_dark(..., reverse = FALSE, aesthetics = "edge_colour") scale_edge_color_dark(..., reverse = FALSE, aesthetics = "edge_colour") scale_edge_fill_dark(..., reverse = FALSE, aesthetics = "edge_fill")
... |
Arguments passed to |
reverse |
A |
aesthetics |
A |
A discrete scale.
The qualitative color schemes are used as given (no interpolation): colors are picked up to the maximum number of supported values.
Palette | Max. |
bright |
7 |
highcontrast |
3 |
vibrant |
7 |
muted |
9 |
mediumcontrast |
6 |
pale |
6 |
dark |
6 |
light |
9 |
According to Paul Tol's technical note, the bright
, highcontrast
,
vibrant
and muted
color schemes are color-blind safe. The
mediumcontrast
color scheme is designed for situations needing color
pairs.
The light
color scheme is reasonably distinct for both normal or
colorblind vision and is intended to fill labeled cells.
The pale
and dark
schemes are not very distinct in either normal or
colorblind vision and should be used as a text background or to highlight
a cell in a table.
Refer to the original document for details about the recommended uses (see references)
N. Frerebeau
Tol, P. (2021). Colour Schemes. SRON. Technical Note No. SRON/EPS/TN/09-002, issue 3.2. URL: https://personal.sron.nl/~pault/data/colourschemes.pdf
Other qualitative color schemes:
scale_colour_land()
,
scale_colour_soil()
,
scale_colour_stratigraphy()
,
scale_okabeito_discrete
,
scale_tol_bright
,
scale_tol_discreterainbow
,
scale_tol_highcontrast
,
scale_tol_light
,
scale_tol_mediumcontrast
,
scale_tol_muted
,
scale_tol_pale
,
scale_tol_vibrant
Other Paul Tol's color schemes:
scale_tol_BuRd
,
scale_tol_PRGn
,
scale_tol_YlOrBr
,
scale_tol_bright
,
scale_tol_discreterainbow
,
scale_tol_highcontrast
,
scale_tol_incandescent
,
scale_tol_iridescent
,
scale_tol_light
,
scale_tol_mediumcontrast
,
scale_tol_muted
,
scale_tol_nightfall
,
scale_tol_pale
,
scale_tol_smoothrainbow
,
scale_tol_sunset
,
scale_tol_vibrant
data(mpg, package = "ggplot2") ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_bright() ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_vibrant() data(diamonds, package = "ggplot2") ggplot2::ggplot(diamonds, ggplot2::aes(clarity, fill = cut)) + ggplot2::geom_bar() + scale_fill_muted()
data(mpg, package = "ggplot2") ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_bright() ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_vibrant() data(diamonds, package = "ggplot2") ggplot2::ggplot(diamonds, ggplot2::aes(clarity, fill = cut)) + ggplot2::geom_bar() + scale_fill_muted()
Paul Tol's discrete rainbow Sequential Color Scheme
scale_colour_discreterainbow(..., reverse = FALSE, aesthetics = "colour") scale_color_discreterainbow(..., reverse = FALSE, aesthetics = "colour") scale_fill_discreterainbow(..., reverse = FALSE, aesthetics = "fill") scale_edge_colour_discreterainbow( ..., reverse = FALSE, aesthetics = "edge_colour" ) scale_edge_color_discreterainbow( ..., reverse = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_discreterainbow(..., reverse = FALSE, aesthetics = "edge_fill")
scale_colour_discreterainbow(..., reverse = FALSE, aesthetics = "colour") scale_color_discreterainbow(..., reverse = FALSE, aesthetics = "colour") scale_fill_discreterainbow(..., reverse = FALSE, aesthetics = "fill") scale_edge_colour_discreterainbow( ..., reverse = FALSE, aesthetics = "edge_colour" ) scale_edge_color_discreterainbow( ..., reverse = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_discreterainbow(..., reverse = FALSE, aesthetics = "edge_fill")
... |
Arguments passed to |
reverse |
A |
aesthetics |
A |
A discrete scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. | NA value |
YlOrBr |
9 | #888888 |
iridescent |
23 | #999999 |
discreterainbow |
23 | #777777 |
smoothrainbow |
34 | #666666 |
As a general rule, ordered data should not be represented using a rainbow scheme. There are three main arguments against such use (Tol 2018):
The spectral order of visible light carries no inherent magnitude message.
Some bands of almost constant hue with sharp transitions between them, can be perceived as jumps in the data.
Color-blind people have difficulty distinguishing some colors of the rainbow.
If such use cannot be avoided, Paul Tol's technical note provides two color schemes that are reasonably clear in color-blind vision. To remain color-blind safe, these two schemes must comply with the following conditions:
discreterainbow
This scheme must not be interpolated.
smoothrainbow
This scheme does not have to be used over the full range.
N. Frerebeau
Tol, P. (2018). Colour Schemes. SRON. Technical Note No. SRON/EPS/TN/09-002, issue 3.1. URL: https://personal.sron.nl/~pault/data/colourschemes.pdf
Other qualitative color schemes:
scale_colour_land()
,
scale_colour_soil()
,
scale_colour_stratigraphy()
,
scale_okabeito_discrete
,
scale_tol_bright
,
scale_tol_dark
,
scale_tol_highcontrast
,
scale_tol_light
,
scale_tol_mediumcontrast
,
scale_tol_muted
,
scale_tol_pale
,
scale_tol_vibrant
Other Paul Tol's color schemes:
scale_tol_BuRd
,
scale_tol_PRGn
,
scale_tol_YlOrBr
,
scale_tol_bright
,
scale_tol_dark
,
scale_tol_highcontrast
,
scale_tol_incandescent
,
scale_tol_iridescent
,
scale_tol_light
,
scale_tol_mediumcontrast
,
scale_tol_muted
,
scale_tol_nightfall
,
scale_tol_pale
,
scale_tol_smoothrainbow
,
scale_tol_sunset
,
scale_tol_vibrant
data(mpg, package = "ggplot2") ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_bright() ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_vibrant() data(diamonds, package = "ggplot2") ggplot2::ggplot(diamonds, ggplot2::aes(clarity, fill = cut)) + ggplot2::geom_bar() + scale_fill_muted()
data(mpg, package = "ggplot2") ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_bright() ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_vibrant() data(diamonds, package = "ggplot2") ggplot2::ggplot(diamonds, ggplot2::aes(clarity, fill = cut)) + ggplot2::geom_bar() + scale_fill_muted()
Paul Tol's high contrast Discrete Color Scheme
scale_colour_highcontrast(..., reverse = FALSE, aesthetics = "colour") scale_color_highcontrast(..., reverse = FALSE, aesthetics = "colour") scale_fill_highcontrast(..., reverse = FALSE, aesthetics = "fill") scale_edge_colour_highcontrast( ..., reverse = FALSE, aesthetics = "edge_colour" ) scale_edge_color_highcontrast(..., reverse = FALSE, aesthetics = "edge_colour") scale_edge_fill_highcontrast(..., reverse = FALSE, aesthetics = "edge_fill")
scale_colour_highcontrast(..., reverse = FALSE, aesthetics = "colour") scale_color_highcontrast(..., reverse = FALSE, aesthetics = "colour") scale_fill_highcontrast(..., reverse = FALSE, aesthetics = "fill") scale_edge_colour_highcontrast( ..., reverse = FALSE, aesthetics = "edge_colour" ) scale_edge_color_highcontrast(..., reverse = FALSE, aesthetics = "edge_colour") scale_edge_fill_highcontrast(..., reverse = FALSE, aesthetics = "edge_fill")
... |
Arguments passed to |
reverse |
A |
aesthetics |
A |
A discrete scale.
The qualitative color schemes are used as given (no interpolation): colors are picked up to the maximum number of supported values.
Palette | Max. |
bright |
7 |
highcontrast |
3 |
vibrant |
7 |
muted |
9 |
mediumcontrast |
6 |
pale |
6 |
dark |
6 |
light |
9 |
According to Paul Tol's technical note, the bright
, highcontrast
,
vibrant
and muted
color schemes are color-blind safe. The
mediumcontrast
color scheme is designed for situations needing color
pairs.
The light
color scheme is reasonably distinct for both normal or
colorblind vision and is intended to fill labeled cells.
The pale
and dark
schemes are not very distinct in either normal or
colorblind vision and should be used as a text background or to highlight
a cell in a table.
Refer to the original document for details about the recommended uses (see references)
N. Frerebeau
Tol, P. (2021). Colour Schemes. SRON. Technical Note No. SRON/EPS/TN/09-002, issue 3.2. URL: https://personal.sron.nl/~pault/data/colourschemes.pdf
Other qualitative color schemes:
scale_colour_land()
,
scale_colour_soil()
,
scale_colour_stratigraphy()
,
scale_okabeito_discrete
,
scale_tol_bright
,
scale_tol_dark
,
scale_tol_discreterainbow
,
scale_tol_light
,
scale_tol_mediumcontrast
,
scale_tol_muted
,
scale_tol_pale
,
scale_tol_vibrant
Other Paul Tol's color schemes:
scale_tol_BuRd
,
scale_tol_PRGn
,
scale_tol_YlOrBr
,
scale_tol_bright
,
scale_tol_dark
,
scale_tol_discreterainbow
,
scale_tol_incandescent
,
scale_tol_iridescent
,
scale_tol_light
,
scale_tol_mediumcontrast
,
scale_tol_muted
,
scale_tol_nightfall
,
scale_tol_pale
,
scale_tol_smoothrainbow
,
scale_tol_sunset
,
scale_tol_vibrant
data(mpg, package = "ggplot2") ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_bright() ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_vibrant() data(diamonds, package = "ggplot2") ggplot2::ggplot(diamonds, ggplot2::aes(clarity, fill = cut)) + ggplot2::geom_bar() + scale_fill_muted()
data(mpg, package = "ggplot2") ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_bright() ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_vibrant() data(diamonds, package = "ggplot2") ggplot2::ggplot(diamonds, ggplot2::aes(clarity, fill = cut)) + ggplot2::geom_bar() + scale_fill_muted()
Paul Tol's incandescent Sequential Color Scheme
scale_colour_incandescent( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_incandescent( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_incandescent( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_incandescent( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_incandescent( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_incandescent( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
scale_colour_incandescent( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_incandescent( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_incandescent( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_incandescent( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_incandescent( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_incandescent( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. | NA value |
YlOrBr |
9 | #888888 |
iridescent |
23 | #999999 |
discreterainbow |
23 | #777777 |
smoothrainbow |
34 | #666666 |
N. Frerebeau
Tol, P. (2018). Colour Schemes. SRON. Technical Note No. SRON/EPS/TN/09-002, issue 3.1. URL: https://personal.sron.nl/~pault/data/colourschemes.pdf
Other sequential color schemes:
scale_crameri_acton
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_bilbao
,
scale_crameri_buda
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_nuuk
,
scale_crameri_oslo
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_tol_YlOrBr
,
scale_tol_iridescent
,
scale_tol_smoothrainbow
Other Paul Tol's color schemes:
scale_tol_BuRd
,
scale_tol_PRGn
,
scale_tol_YlOrBr
,
scale_tol_bright
,
scale_tol_dark
,
scale_tol_discreterainbow
,
scale_tol_highcontrast
,
scale_tol_iridescent
,
scale_tol_light
,
scale_tol_mediumcontrast
,
scale_tol_muted
,
scale_tol_nightfall
,
scale_tol_pale
,
scale_tol_smoothrainbow
,
scale_tol_sunset
,
scale_tol_vibrant
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_YlOrBr() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_iridescent(reverse = TRUE) ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_smoothrainbow(range = c(0.25, 1))
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_YlOrBr() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_iridescent(reverse = TRUE) ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_smoothrainbow(range = c(0.25, 1))
Paul Tol's iridescent Sequential Color Scheme
scale_colour_iridescent( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_iridescent( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_iridescent( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_iridescent( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_iridescent( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_iridescent( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
scale_colour_iridescent( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_iridescent( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_iridescent( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_iridescent( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_iridescent( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_iridescent( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. | NA value |
YlOrBr |
9 | #888888 |
iridescent |
23 | #999999 |
discreterainbow |
23 | #777777 |
smoothrainbow |
34 | #666666 |
N. Frerebeau
Tol, P. (2018). Colour Schemes. SRON. Technical Note No. SRON/EPS/TN/09-002, issue 3.1. URL: https://personal.sron.nl/~pault/data/colourschemes.pdf
Other sequential color schemes:
scale_crameri_acton
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_bilbao
,
scale_crameri_buda
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_nuuk
,
scale_crameri_oslo
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_tol_YlOrBr
,
scale_tol_incandescent
,
scale_tol_smoothrainbow
Other Paul Tol's color schemes:
scale_tol_BuRd
,
scale_tol_PRGn
,
scale_tol_YlOrBr
,
scale_tol_bright
,
scale_tol_dark
,
scale_tol_discreterainbow
,
scale_tol_highcontrast
,
scale_tol_incandescent
,
scale_tol_light
,
scale_tol_mediumcontrast
,
scale_tol_muted
,
scale_tol_nightfall
,
scale_tol_pale
,
scale_tol_smoothrainbow
,
scale_tol_sunset
,
scale_tol_vibrant
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_YlOrBr() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_iridescent(reverse = TRUE) ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_smoothrainbow(range = c(0.25, 1))
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_YlOrBr() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_iridescent(reverse = TRUE) ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_smoothrainbow(range = c(0.25, 1))
Paul Tol's light Discrete Color Scheme
scale_colour_light(..., reverse = FALSE, aesthetics = "colour") scale_color_light(..., reverse = FALSE, aesthetics = "colour") scale_fill_light(..., reverse = FALSE, aesthetics = "fill") scale_edge_colour_light(..., reverse = FALSE, aesthetics = "edge_colour") scale_edge_color_light(..., reverse = FALSE, aesthetics = "edge_colour") scale_edge_fill_light(..., reverse = FALSE, aesthetics = "edge_fill")
scale_colour_light(..., reverse = FALSE, aesthetics = "colour") scale_color_light(..., reverse = FALSE, aesthetics = "colour") scale_fill_light(..., reverse = FALSE, aesthetics = "fill") scale_edge_colour_light(..., reverse = FALSE, aesthetics = "edge_colour") scale_edge_color_light(..., reverse = FALSE, aesthetics = "edge_colour") scale_edge_fill_light(..., reverse = FALSE, aesthetics = "edge_fill")
... |
Arguments passed to |
reverse |
A |
aesthetics |
A |
A discrete scale.
The qualitative color schemes are used as given (no interpolation): colors are picked up to the maximum number of supported values.
Palette | Max. |
bright |
7 |
highcontrast |
3 |
vibrant |
7 |
muted |
9 |
mediumcontrast |
6 |
pale |
6 |
dark |
6 |
light |
9 |
According to Paul Tol's technical note, the bright
, highcontrast
,
vibrant
and muted
color schemes are color-blind safe. The
mediumcontrast
color scheme is designed for situations needing color
pairs.
The light
color scheme is reasonably distinct for both normal or
colorblind vision and is intended to fill labeled cells.
The pale
and dark
schemes are not very distinct in either normal or
colorblind vision and should be used as a text background or to highlight
a cell in a table.
Refer to the original document for details about the recommended uses (see references)
N. Frerebeau
Tol, P. (2021). Colour Schemes. SRON. Technical Note No. SRON/EPS/TN/09-002, issue 3.2. URL: https://personal.sron.nl/~pault/data/colourschemes.pdf
Other qualitative color schemes:
scale_colour_land()
,
scale_colour_soil()
,
scale_colour_stratigraphy()
,
scale_okabeito_discrete
,
scale_tol_bright
,
scale_tol_dark
,
scale_tol_discreterainbow
,
scale_tol_highcontrast
,
scale_tol_mediumcontrast
,
scale_tol_muted
,
scale_tol_pale
,
scale_tol_vibrant
Other Paul Tol's color schemes:
scale_tol_BuRd
,
scale_tol_PRGn
,
scale_tol_YlOrBr
,
scale_tol_bright
,
scale_tol_dark
,
scale_tol_discreterainbow
,
scale_tol_highcontrast
,
scale_tol_incandescent
,
scale_tol_iridescent
,
scale_tol_mediumcontrast
,
scale_tol_muted
,
scale_tol_nightfall
,
scale_tol_pale
,
scale_tol_smoothrainbow
,
scale_tol_sunset
,
scale_tol_vibrant
data(mpg, package = "ggplot2") ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_bright() ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_vibrant() data(diamonds, package = "ggplot2") ggplot2::ggplot(diamonds, ggplot2::aes(clarity, fill = cut)) + ggplot2::geom_bar() + scale_fill_muted()
data(mpg, package = "ggplot2") ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_bright() ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_vibrant() data(diamonds, package = "ggplot2") ggplot2::ggplot(diamonds, ggplot2::aes(clarity, fill = cut)) + ggplot2::geom_bar() + scale_fill_muted()
Paul Tol's medium contrast Discrete Color Scheme
scale_colour_mediumcontrast(..., reverse = FALSE, aesthetics = "colour") scale_color_mediumcontrast(..., reverse = FALSE, aesthetics = "colour") scale_fill_mediumcontrast(..., reverse = FALSE, aesthetics = "fill") scale_edge_colour_mediumcontrast( ..., reverse = FALSE, aesthetics = "edge_colour" ) scale_edge_color_mediumcontrast( ..., reverse = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_mediumcontrast(..., reverse = FALSE, aesthetics = "edge_fill")
scale_colour_mediumcontrast(..., reverse = FALSE, aesthetics = "colour") scale_color_mediumcontrast(..., reverse = FALSE, aesthetics = "colour") scale_fill_mediumcontrast(..., reverse = FALSE, aesthetics = "fill") scale_edge_colour_mediumcontrast( ..., reverse = FALSE, aesthetics = "edge_colour" ) scale_edge_color_mediumcontrast( ..., reverse = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_mediumcontrast(..., reverse = FALSE, aesthetics = "edge_fill")
... |
Arguments passed to |
reverse |
A |
aesthetics |
A |
A discrete scale.
The qualitative color schemes are used as given (no interpolation): colors are picked up to the maximum number of supported values.
Palette | Max. |
bright |
7 |
highcontrast |
3 |
vibrant |
7 |
muted |
9 |
mediumcontrast |
6 |
pale |
6 |
dark |
6 |
light |
9 |
According to Paul Tol's technical note, the bright
, highcontrast
,
vibrant
and muted
color schemes are color-blind safe. The
mediumcontrast
color scheme is designed for situations needing color
pairs.
The light
color scheme is reasonably distinct for both normal or
colorblind vision and is intended to fill labeled cells.
The pale
and dark
schemes are not very distinct in either normal or
colorblind vision and should be used as a text background or to highlight
a cell in a table.
Refer to the original document for details about the recommended uses (see references)
N. Frerebeau
Tol, P. (2021). Colour Schemes. SRON. Technical Note No. SRON/EPS/TN/09-002, issue 3.2. URL: https://personal.sron.nl/~pault/data/colourschemes.pdf
Other qualitative color schemes:
scale_colour_land()
,
scale_colour_soil()
,
scale_colour_stratigraphy()
,
scale_okabeito_discrete
,
scale_tol_bright
,
scale_tol_dark
,
scale_tol_discreterainbow
,
scale_tol_highcontrast
,
scale_tol_light
,
scale_tol_muted
,
scale_tol_pale
,
scale_tol_vibrant
Other Paul Tol's color schemes:
scale_tol_BuRd
,
scale_tol_PRGn
,
scale_tol_YlOrBr
,
scale_tol_bright
,
scale_tol_dark
,
scale_tol_discreterainbow
,
scale_tol_highcontrast
,
scale_tol_incandescent
,
scale_tol_iridescent
,
scale_tol_light
,
scale_tol_muted
,
scale_tol_nightfall
,
scale_tol_pale
,
scale_tol_smoothrainbow
,
scale_tol_sunset
,
scale_tol_vibrant
data(mpg, package = "ggplot2") ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_bright() ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_vibrant() data(diamonds, package = "ggplot2") ggplot2::ggplot(diamonds, ggplot2::aes(clarity, fill = cut)) + ggplot2::geom_bar() + scale_fill_muted()
data(mpg, package = "ggplot2") ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_bright() ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_vibrant() data(diamonds, package = "ggplot2") ggplot2::ggplot(diamonds, ggplot2::aes(clarity, fill = cut)) + ggplot2::geom_bar() + scale_fill_muted()
Paul Tol's muted Discrete Color Scheme
scale_colour_muted(..., reverse = FALSE, aesthetics = "colour") scale_color_muted(..., reverse = FALSE, aesthetics = "colour") scale_fill_muted(..., reverse = FALSE, aesthetics = "fill") scale_edge_colour_muted(..., reverse = FALSE, aesthetics = "edge_colour") scale_edge_color_muted(..., reverse = FALSE, aesthetics = "edge_colour") scale_edge_fill_muted(..., reverse = FALSE, aesthetics = "edge_fill")
scale_colour_muted(..., reverse = FALSE, aesthetics = "colour") scale_color_muted(..., reverse = FALSE, aesthetics = "colour") scale_fill_muted(..., reverse = FALSE, aesthetics = "fill") scale_edge_colour_muted(..., reverse = FALSE, aesthetics = "edge_colour") scale_edge_color_muted(..., reverse = FALSE, aesthetics = "edge_colour") scale_edge_fill_muted(..., reverse = FALSE, aesthetics = "edge_fill")
... |
Arguments passed to |
reverse |
A |
aesthetics |
A |
A discrete scale.
The qualitative color schemes are used as given (no interpolation): colors are picked up to the maximum number of supported values.
Palette | Max. |
bright |
7 |
highcontrast |
3 |
vibrant |
7 |
muted |
9 |
mediumcontrast |
6 |
pale |
6 |
dark |
6 |
light |
9 |
According to Paul Tol's technical note, the bright
, highcontrast
,
vibrant
and muted
color schemes are color-blind safe. The
mediumcontrast
color scheme is designed for situations needing color
pairs.
The light
color scheme is reasonably distinct for both normal or
colorblind vision and is intended to fill labeled cells.
The pale
and dark
schemes are not very distinct in either normal or
colorblind vision and should be used as a text background or to highlight
a cell in a table.
Refer to the original document for details about the recommended uses (see references)
N. Frerebeau
Tol, P. (2021). Colour Schemes. SRON. Technical Note No. SRON/EPS/TN/09-002, issue 3.2. URL: https://personal.sron.nl/~pault/data/colourschemes.pdf
Other qualitative color schemes:
scale_colour_land()
,
scale_colour_soil()
,
scale_colour_stratigraphy()
,
scale_okabeito_discrete
,
scale_tol_bright
,
scale_tol_dark
,
scale_tol_discreterainbow
,
scale_tol_highcontrast
,
scale_tol_light
,
scale_tol_mediumcontrast
,
scale_tol_pale
,
scale_tol_vibrant
Other Paul Tol's color schemes:
scale_tol_BuRd
,
scale_tol_PRGn
,
scale_tol_YlOrBr
,
scale_tol_bright
,
scale_tol_dark
,
scale_tol_discreterainbow
,
scale_tol_highcontrast
,
scale_tol_incandescent
,
scale_tol_iridescent
,
scale_tol_light
,
scale_tol_mediumcontrast
,
scale_tol_nightfall
,
scale_tol_pale
,
scale_tol_smoothrainbow
,
scale_tol_sunset
,
scale_tol_vibrant
data(mpg, package = "ggplot2") ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_bright() ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_vibrant() data(diamonds, package = "ggplot2") ggplot2::ggplot(diamonds, ggplot2::aes(clarity, fill = cut)) + ggplot2::geom_bar() + scale_fill_muted()
data(mpg, package = "ggplot2") ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_bright() ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_vibrant() data(diamonds, package = "ggplot2") ggplot2::ggplot(diamonds, ggplot2::aes(clarity, fill = cut)) + ggplot2::geom_bar() + scale_fill_muted()
Paul Tol's nightfall Diverging Color Scheme
scale_colour_nightfall( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_color_nightfall( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_fill_nightfall( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_nightfall( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_nightfall( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_nightfall( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_fill" )
scale_colour_nightfall( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_color_nightfall( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_fill_nightfall( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_nightfall( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_nightfall( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_nightfall( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
midpoint |
A length-one |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. | NA value |
sunset |
11 | #FFFFFF |
nightfall |
17 | #FFFFFF |
BuRd |
9 | #FFEE99 |
PRGn |
9 | #FFEE99 |
N. Frerebeau
Tol, P. (2018). Colour Schemes. SRON. Technical Note No. SRON/EPS/TN/09-002, issue 3.1. URL: https://personal.sron.nl/~pault/data/colourschemes.pdf
Other diverging color schemes:
scale_crameri_bam
,
scale_crameri_berlin
,
scale_crameri_broc
,
scale_crameri_cork
,
scale_crameri_lisbon
,
scale_crameri_roma
,
scale_crameri_tofino
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_tol_BuRd
,
scale_tol_PRGn
,
scale_tol_sunset
Other Paul Tol's color schemes:
scale_tol_BuRd
,
scale_tol_PRGn
,
scale_tol_YlOrBr
,
scale_tol_bright
,
scale_tol_dark
,
scale_tol_discreterainbow
,
scale_tol_highcontrast
,
scale_tol_incandescent
,
scale_tol_iridescent
,
scale_tol_light
,
scale_tol_mediumcontrast
,
scale_tol_muted
,
scale_tol_pale
,
scale_tol_smoothrainbow
,
scale_tol_sunset
,
scale_tol_vibrant
data(economics, package = "ggplot2") ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_color_sunset(reverse = TRUE, midpoint = 12000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_color_BuRd(midpoint = 9000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_color_PRGn(midpoint = 9000, range = c(0.25, 1))
data(economics, package = "ggplot2") ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_color_sunset(reverse = TRUE, midpoint = 12000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_color_BuRd(midpoint = 9000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_color_PRGn(midpoint = 9000, range = c(0.25, 1))
Paul Tol's pale Discrete Color Scheme
scale_colour_pale(..., reverse = FALSE, aesthetics = "colour") scale_color_pale(..., reverse = FALSE, aesthetics = "colour") scale_fill_pale(..., reverse = FALSE, aesthetics = "fill") scale_edge_colour_pale(..., reverse = FALSE, aesthetics = "edge_colour") scale_edge_color_pale(..., reverse = FALSE, aesthetics = "edge_colour") scale_edge_fill_pale(..., reverse = FALSE, aesthetics = "edge_fill")
scale_colour_pale(..., reverse = FALSE, aesthetics = "colour") scale_color_pale(..., reverse = FALSE, aesthetics = "colour") scale_fill_pale(..., reverse = FALSE, aesthetics = "fill") scale_edge_colour_pale(..., reverse = FALSE, aesthetics = "edge_colour") scale_edge_color_pale(..., reverse = FALSE, aesthetics = "edge_colour") scale_edge_fill_pale(..., reverse = FALSE, aesthetics = "edge_fill")
... |
Arguments passed to |
reverse |
A |
aesthetics |
A |
A discrete scale.
The qualitative color schemes are used as given (no interpolation): colors are picked up to the maximum number of supported values.
Palette | Max. |
bright |
7 |
highcontrast |
3 |
vibrant |
7 |
muted |
9 |
mediumcontrast |
6 |
pale |
6 |
dark |
6 |
light |
9 |
According to Paul Tol's technical note, the bright
, highcontrast
,
vibrant
and muted
color schemes are color-blind safe. The
mediumcontrast
color scheme is designed for situations needing color
pairs.
The light
color scheme is reasonably distinct for both normal or
colorblind vision and is intended to fill labeled cells.
The pale
and dark
schemes are not very distinct in either normal or
colorblind vision and should be used as a text background or to highlight
a cell in a table.
Refer to the original document for details about the recommended uses (see references)
N. Frerebeau
Tol, P. (2021). Colour Schemes. SRON. Technical Note No. SRON/EPS/TN/09-002, issue 3.2. URL: https://personal.sron.nl/~pault/data/colourschemes.pdf
Other qualitative color schemes:
scale_colour_land()
,
scale_colour_soil()
,
scale_colour_stratigraphy()
,
scale_okabeito_discrete
,
scale_tol_bright
,
scale_tol_dark
,
scale_tol_discreterainbow
,
scale_tol_highcontrast
,
scale_tol_light
,
scale_tol_mediumcontrast
,
scale_tol_muted
,
scale_tol_vibrant
Other Paul Tol's color schemes:
scale_tol_BuRd
,
scale_tol_PRGn
,
scale_tol_YlOrBr
,
scale_tol_bright
,
scale_tol_dark
,
scale_tol_discreterainbow
,
scale_tol_highcontrast
,
scale_tol_incandescent
,
scale_tol_iridescent
,
scale_tol_light
,
scale_tol_mediumcontrast
,
scale_tol_muted
,
scale_tol_nightfall
,
scale_tol_smoothrainbow
,
scale_tol_sunset
,
scale_tol_vibrant
data(mpg, package = "ggplot2") ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_bright() ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_vibrant() data(diamonds, package = "ggplot2") ggplot2::ggplot(diamonds, ggplot2::aes(clarity, fill = cut)) + ggplot2::geom_bar() + scale_fill_muted()
data(mpg, package = "ggplot2") ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_bright() ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_vibrant() data(diamonds, package = "ggplot2") ggplot2::ggplot(diamonds, ggplot2::aes(clarity, fill = cut)) + ggplot2::geom_bar() + scale_fill_muted()
Paul Tol's PRGn Diverging Color Scheme
scale_colour_PRGn( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_color_PRGn( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_fill_PRGn( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_PRGn( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_PRGn( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_PRGn( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_fill" )
scale_colour_PRGn( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_color_PRGn( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_fill_PRGn( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_PRGn( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_PRGn( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_PRGn( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
midpoint |
A length-one |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. | NA value |
sunset |
11 | #FFFFFF |
nightfall |
17 | #FFFFFF |
BuRd |
9 | #FFEE99 |
PRGn |
9 | #FFEE99 |
N. Frerebeau
Tol, P. (2018). Colour Schemes. SRON. Technical Note No. SRON/EPS/TN/09-002, issue 3.1. URL: https://personal.sron.nl/~pault/data/colourschemes.pdf
Other diverging color schemes:
scale_crameri_bam
,
scale_crameri_berlin
,
scale_crameri_broc
,
scale_crameri_cork
,
scale_crameri_lisbon
,
scale_crameri_roma
,
scale_crameri_tofino
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_tol_BuRd
,
scale_tol_nightfall
,
scale_tol_sunset
Other Paul Tol's color schemes:
scale_tol_BuRd
,
scale_tol_YlOrBr
,
scale_tol_bright
,
scale_tol_dark
,
scale_tol_discreterainbow
,
scale_tol_highcontrast
,
scale_tol_incandescent
,
scale_tol_iridescent
,
scale_tol_light
,
scale_tol_mediumcontrast
,
scale_tol_muted
,
scale_tol_nightfall
,
scale_tol_pale
,
scale_tol_smoothrainbow
,
scale_tol_sunset
,
scale_tol_vibrant
data(economics, package = "ggplot2") ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_color_sunset(reverse = TRUE, midpoint = 12000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_color_BuRd(midpoint = 9000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_color_PRGn(midpoint = 9000, range = c(0.25, 1))
data(economics, package = "ggplot2") ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_color_sunset(reverse = TRUE, midpoint = 12000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_color_BuRd(midpoint = 9000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_color_PRGn(midpoint = 9000, range = c(0.25, 1))
Paul Tol's smooth rainbow Sequential Color Scheme
scale_colour_smoothrainbow( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_smoothrainbow( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_smoothrainbow( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_smoothrainbow( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_smoothrainbow( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_smoothrainbow( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
scale_colour_smoothrainbow( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_smoothrainbow( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_smoothrainbow( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_smoothrainbow( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_smoothrainbow( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_smoothrainbow( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. | NA value |
YlOrBr |
9 | #888888 |
iridescent |
23 | #999999 |
discreterainbow |
23 | #777777 |
smoothrainbow |
34 | #666666 |
As a general rule, ordered data should not be represented using a rainbow scheme. There are three main arguments against such use (Tol 2018):
The spectral order of visible light carries no inherent magnitude message.
Some bands of almost constant hue with sharp transitions between them, can be perceived as jumps in the data.
Color-blind people have difficulty distinguishing some colors of the rainbow.
If such use cannot be avoided, Paul Tol's technical note provides two color schemes that are reasonably clear in color-blind vision. To remain color-blind safe, these two schemes must comply with the following conditions:
discreterainbow
This scheme must not be interpolated.
smoothrainbow
This scheme does not have to be used over the full range.
N. Frerebeau
Tol, P. (2018). Colour Schemes. SRON. Technical Note No. SRON/EPS/TN/09-002, issue 3.1. URL: https://personal.sron.nl/~pault/data/colourschemes.pdf
Other sequential color schemes:
scale_crameri_acton
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_bilbao
,
scale_crameri_buda
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_nuuk
,
scale_crameri_oslo
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_tol_YlOrBr
,
scale_tol_incandescent
,
scale_tol_iridescent
Other Paul Tol's color schemes:
scale_tol_BuRd
,
scale_tol_PRGn
,
scale_tol_YlOrBr
,
scale_tol_bright
,
scale_tol_dark
,
scale_tol_discreterainbow
,
scale_tol_highcontrast
,
scale_tol_incandescent
,
scale_tol_iridescent
,
scale_tol_light
,
scale_tol_mediumcontrast
,
scale_tol_muted
,
scale_tol_nightfall
,
scale_tol_pale
,
scale_tol_sunset
,
scale_tol_vibrant
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_YlOrBr() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_iridescent(reverse = TRUE) ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_smoothrainbow(range = c(0.25, 1))
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_YlOrBr() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_iridescent(reverse = TRUE) ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_smoothrainbow(range = c(0.25, 1))
Paul Tol's sunset Diverging Color Scheme
scale_colour_sunset( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_color_sunset( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_fill_sunset( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_sunset( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_sunset( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_sunset( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_fill" )
scale_colour_sunset( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_color_sunset( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "colour" ) scale_fill_sunset( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_sunset( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_sunset( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_sunset( ..., reverse = FALSE, range = c(0, 1), midpoint = 0, discrete = FALSE, aesthetics = "edge_fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
midpoint |
A length-one |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. | NA value |
sunset |
11 | #FFFFFF |
nightfall |
17 | #FFFFFF |
BuRd |
9 | #FFEE99 |
PRGn |
9 | #FFEE99 |
N. Frerebeau
Tol, P. (2018). Colour Schemes. SRON. Technical Note No. SRON/EPS/TN/09-002, issue 3.1. URL: https://personal.sron.nl/~pault/data/colourschemes.pdf
Other diverging color schemes:
scale_crameri_bam
,
scale_crameri_berlin
,
scale_crameri_broc
,
scale_crameri_cork
,
scale_crameri_lisbon
,
scale_crameri_roma
,
scale_crameri_tofino
,
scale_crameri_vanimo
,
scale_crameri_vik
,
scale_tol_BuRd
,
scale_tol_PRGn
,
scale_tol_nightfall
Other Paul Tol's color schemes:
scale_tol_BuRd
,
scale_tol_PRGn
,
scale_tol_YlOrBr
,
scale_tol_bright
,
scale_tol_dark
,
scale_tol_discreterainbow
,
scale_tol_highcontrast
,
scale_tol_incandescent
,
scale_tol_iridescent
,
scale_tol_light
,
scale_tol_mediumcontrast
,
scale_tol_muted
,
scale_tol_nightfall
,
scale_tol_pale
,
scale_tol_smoothrainbow
,
scale_tol_vibrant
data(economics, package = "ggplot2") ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_color_sunset(reverse = TRUE, midpoint = 12000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_color_BuRd(midpoint = 9000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_color_PRGn(midpoint = 9000, range = c(0.25, 1))
data(economics, package = "ggplot2") ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_color_sunset(reverse = TRUE, midpoint = 12000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_color_BuRd(midpoint = 9000) ggplot2::ggplot(economics, ggplot2::aes(psavert, pce, colour = unemploy)) + ggplot2::geom_point() + scale_color_PRGn(midpoint = 9000, range = c(0.25, 1))
Paul Tol's vibrant Discrete Color Scheme
scale_colour_vibrant(..., reverse = FALSE, aesthetics = "colour") scale_color_vibrant(..., reverse = FALSE, aesthetics = "colour") scale_fill_vibrant(..., reverse = FALSE, aesthetics = "fill") scale_edge_colour_vibrant(..., reverse = FALSE, aesthetics = "edge_colour") scale_edge_color_vibrant(..., reverse = FALSE, aesthetics = "edge_colour") scale_edge_fill_vibrant(..., reverse = FALSE, aesthetics = "edge_fill")
scale_colour_vibrant(..., reverse = FALSE, aesthetics = "colour") scale_color_vibrant(..., reverse = FALSE, aesthetics = "colour") scale_fill_vibrant(..., reverse = FALSE, aesthetics = "fill") scale_edge_colour_vibrant(..., reverse = FALSE, aesthetics = "edge_colour") scale_edge_color_vibrant(..., reverse = FALSE, aesthetics = "edge_colour") scale_edge_fill_vibrant(..., reverse = FALSE, aesthetics = "edge_fill")
... |
Arguments passed to |
reverse |
A |
aesthetics |
A |
A discrete scale.
The qualitative color schemes are used as given (no interpolation): colors are picked up to the maximum number of supported values.
Palette | Max. |
bright |
7 |
highcontrast |
3 |
vibrant |
7 |
muted |
9 |
mediumcontrast |
6 |
pale |
6 |
dark |
6 |
light |
9 |
According to Paul Tol's technical note, the bright
, highcontrast
,
vibrant
and muted
color schemes are color-blind safe. The
mediumcontrast
color scheme is designed for situations needing color
pairs.
The light
color scheme is reasonably distinct for both normal or
colorblind vision and is intended to fill labeled cells.
The pale
and dark
schemes are not very distinct in either normal or
colorblind vision and should be used as a text background or to highlight
a cell in a table.
Refer to the original document for details about the recommended uses (see references)
N. Frerebeau
Tol, P. (2021). Colour Schemes. SRON. Technical Note No. SRON/EPS/TN/09-002, issue 3.2. URL: https://personal.sron.nl/~pault/data/colourschemes.pdf
Other qualitative color schemes:
scale_colour_land()
,
scale_colour_soil()
,
scale_colour_stratigraphy()
,
scale_okabeito_discrete
,
scale_tol_bright
,
scale_tol_dark
,
scale_tol_discreterainbow
,
scale_tol_highcontrast
,
scale_tol_light
,
scale_tol_mediumcontrast
,
scale_tol_muted
,
scale_tol_pale
Other Paul Tol's color schemes:
scale_tol_BuRd
,
scale_tol_PRGn
,
scale_tol_YlOrBr
,
scale_tol_bright
,
scale_tol_dark
,
scale_tol_discreterainbow
,
scale_tol_highcontrast
,
scale_tol_incandescent
,
scale_tol_iridescent
,
scale_tol_light
,
scale_tol_mediumcontrast
,
scale_tol_muted
,
scale_tol_nightfall
,
scale_tol_pale
,
scale_tol_smoothrainbow
,
scale_tol_sunset
data(mpg, package = "ggplot2") ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_bright() ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_vibrant() data(diamonds, package = "ggplot2") ggplot2::ggplot(diamonds, ggplot2::aes(clarity, fill = cut)) + ggplot2::geom_bar() + scale_fill_muted()
data(mpg, package = "ggplot2") ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_bright() ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) + ggplot2::geom_point() + scale_colour_vibrant() data(diamonds, package = "ggplot2") ggplot2::ggplot(diamonds, ggplot2::aes(clarity, fill = cut)) + ggplot2::geom_bar() + scale_fill_muted()
Paul Tol's YlOrBr Sequential Color Scheme
scale_colour_YlOrBr( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_YlOrBr( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_YlOrBr( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_YlOrBr( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_YlOrBr( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_YlOrBr( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
scale_colour_YlOrBr( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_color_YlOrBr( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "colour" ) scale_fill_YlOrBr( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "fill" ) scale_edge_colour_YlOrBr( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_color_YlOrBr( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_colour" ) scale_edge_fill_YlOrBr( ..., reverse = FALSE, range = c(0, 1), discrete = FALSE, aesthetics = "edge_fill" )
... |
Arguments passed to |
reverse |
A |
range |
A length-two |
discrete |
A |
aesthetics |
A |
A continuous scale.
If more colors than defined are needed from a given scheme, the color coordinates are linearly interpolated to provide a continuous version of the scheme.
Palette | Max. | NA value |
YlOrBr |
9 | #888888 |
iridescent |
23 | #999999 |
discreterainbow |
23 | #777777 |
smoothrainbow |
34 | #666666 |
N. Frerebeau
Tol, P. (2018). Colour Schemes. SRON. Technical Note No. SRON/EPS/TN/09-002, issue 3.1. URL: https://personal.sron.nl/~pault/data/colourschemes.pdf
Other sequential color schemes:
scale_crameri_acton
,
scale_crameri_bamako
,
scale_crameri_batlow
,
scale_crameri_batlowK
,
scale_crameri_batlowW
,
scale_crameri_bilbao
,
scale_crameri_buda
,
scale_crameri_davos
,
scale_crameri_devon
,
scale_crameri_grayC
,
scale_crameri_hawaii
,
scale_crameri_imola
,
scale_crameri_lajolla
,
scale_crameri_lapaz
,
scale_crameri_nuuk
,
scale_crameri_oslo
,
scale_crameri_tokyo
,
scale_crameri_turku
,
scale_tol_incandescent
,
scale_tol_iridescent
,
scale_tol_smoothrainbow
Other Paul Tol's color schemes:
scale_tol_BuRd
,
scale_tol_PRGn
,
scale_tol_bright
,
scale_tol_dark
,
scale_tol_discreterainbow
,
scale_tol_highcontrast
,
scale_tol_incandescent
,
scale_tol_iridescent
,
scale_tol_light
,
scale_tol_mediumcontrast
,
scale_tol_muted
,
scale_tol_nightfall
,
scale_tol_pale
,
scale_tol_smoothrainbow
,
scale_tol_sunset
,
scale_tol_vibrant
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_YlOrBr() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_iridescent(reverse = TRUE) ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_smoothrainbow(range = c(0.25, 1))
data(faithfuld, package = "ggplot2") ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_YlOrBr() ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_iridescent(reverse = TRUE) ggplot2::ggplot(faithfuld, ggplot2::aes(waiting, eruptions, fill = density)) + ggplot2::geom_raster() + scale_fill_smoothrainbow(range = c(0.25, 1))