scale_colour_soil {khroma} | R Documentation |
FAO Soil Reference Groups Color Scheme for ggplot2 and ggraph
Description
Provides the FAO Soil Reference Groups color scheme.
Usage
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
... |
Arguments passed on to |
lang |
A |
aesthetics |
A |
Details
Values will be matched based on the soil names.
Value
A discrete scale.
Author(s)
N. Frerebeau
References
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.
See Also
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
Examples
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")