Learn R Programming

GSIF (version 0.5-5.1)

soil.legends: Standard color palettes for soil properties and classes

Description

Standard color palettes for soil properties and classes that can be used to display global soil data.

Usage

data(soil.legends)

Arguments

Format

Contains a list of color palettes (data frames with class names / break points, and cumulative probabilities) for:

ORCDRC

numeric; soil organic carbon content in permille

PHIHOX

numeric; pH index measured in water solution

PHIKCL

numeric; pH index measured in KCl solution

BLDFIE

numeric; bulk density (fine earth) in kg per cubic meter

CECSOL

numeric; Cation Exchange Capacity of soil

SNDPPT

numeric; weight percentage of the sand particles (0.05--2 mm)

SLTPPT

numeric; weight percentage of the silt particles (0.0002--0.05 mm)

CLYPPT

numeric; weight percentage of the clay particles (<0.0002 mm)

CRFVOL

numeric; volumetric percentage of coarse fragments (>2 mm)

TAXOUSDA

factor; Keys to Soil Taxonomy suborders

TAXGWRB

factor; World Reference Base groups

TAXNWRB

factor; World Reference Base legend for SoilGrids250m

References

Examples

Run this code
# NOT RUN {
data(soil.legends)
pal <- soil.legends$ORCDRC$COLOR
names(pal) <- signif((soil.legends$ORCDRC$MAX + 
    soil.legends$ORCDRC$MIN)/2, 3)
pal
data(soil.vars)
soil.vars[soil.vars$varname=="ORCDRC",]
## make SAGA GIS palette:
makeSAGAlegend(x=as.factor(names(pal)), col_pal=pal, 
    filename="ORCDRC.txt")
# }

Run the code above in your browser using DataLab