View source: R/color-palettes.R
soilTextureColorPal | R Documentation |
Suggested color palettes for USDA soil texture classes, ranked according to average plant-available water holding capacity. The default color mapping schema is based on a palette used by SoilWeb applications.
soilTextureColorPal(simplify = FALSE, schema = "soilweb")
simplify |
logical, return the base 12 ( |
schema |
select mapping between soil texture classes, and colors, currently limited to 'soilweb' |
data.frame
from soil texture class codes and colors
D.E. Beaudette, Mike Walkinshaw, A.T. O'Geen
# base 12 soil texture classes
# ranked by plant available water-holding capacity
d <- soilTextureColorPal(simplify = TRUE)
soilPalette(d$color, lab = d$class, lab.cex = 1)
# full 21 soil texture classes
# ranked by plant available water-holding capacity
d <- soilTextureColorPal(simplify = FALSE)
soilPalette(d$color, lab = d$class, lab.cex = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.