Learn R Programming

khroma (version 1.1.1)

scale_colour_soil: FAO Soil Reference Groups Colour Scheme for ggplot2

Description

Provides the FAO Soil Reference Groups colour scheme.

Usage

scale_colour_soil(..., aesthetics = "colour")

scale_color_soil(..., aesthetics = "colour")

scale_fill_soil(..., aesthetics = "fill")

Arguments

...

Arguments passed on to discrete_scale.

aesthetics

A character string or vector of character strings listing the name(s) of the aesthetic(s) that this scale works with.

Details

Values will be matched based on the soil names.

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 colour schemes: scale_colour_stratigraphy

Examples

Run this code
# NOT RUN {
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")
)

ggplot(soil, aes(fill = name)) +
  geom_rect(aes(xmin = rep(0, 24), xmax = rep(1, 24),
                ymin = 1:24, ymax = 1:24+1)) +
  scale_y_reverse() +
  khroma::scale_fill_soil(name = "Soil")
# }

Run the code above in your browser using DataLab