R: Standard color palettes for soil properties and classes
soil.legends
R Documentation
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)
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
BLD
numeric; bulk density in kg per cubic meter
CEC
numeric; Cation Exchange Capacity
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)
TAXGWRB
factor; World Reference base groups
TAXOUSDA
factor; Keys to Soil Taxonomy suborders
Note
Breaks for continuous soil properties were determined using the quantiles function and by visually inspecting the histograms to maximize the contrast in output maps. Based on a compilation of global soil profile data (see ISRIC WoSIS).
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")
Results
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(GSIF)
GSIF version 0.5-2 (2016-06-25)
URL: http://gsif.r-forge.r-project.org/
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/GSIF/soil.legends.Rd_%03d_medium.png", width=480, height=480)
> ### Name: soil.legends
> ### Title: Standard color palettes for soil properties and classes
> ### Aliases: soil.legends soil.dom soil.vars makeSAGAlegend
> ### Keywords: datasets
>
> ### ** Examples
>
> data(soil.legends)
> pal <- soil.legends$ORCDRC$COLOR
> names(pal) <- signif((soil.legends$ORCDRC$MAX +
+ soil.legends$ORCDRC$MIN)/2, 3)
> pal
0.1 0.3 0.5 0.7 0.95 1.3 1.7 2.15
"#000180" "#000393" "#0006A6" "#000FB7" "#0018C8" "#0025D6" "#0032E3" "#0043ED"
2.7 3.3 4 4.85 5.8 6.9 8.2 9.7
"#0054F6" "#0067FA" "#0079FE" "#038DFC" "#06A0F9" "#0DB2F2" "#15C3E9" "#21D2DD"
11.4 13.5 15.9 18.7 22 25.8 30.2 35.4
"#2FE0CF" "#3EEBC0" "#4FF3AF" "#62F99C" "#75FD8A" "#89FD76" "#9BF963" "#AEF450"
41.4 48.4 56.5 66 77 90 105 122
"#BFEB3F" "#CFE02F" "#DCD322" "#E8C416" "#F1B30D" "#F8A106" "#FC8F03" "#FE7B00"
143 167 194 226 264 308 359 418
"#FA6800" "#F65500" "#ED4400" "#E43300" "#D62500" "#C91800" "#B80F00" "#A70700"
> data(soil.vars)
> soil.vars[soil.vars$varname=="ORCDRC",]
varname fullname
5 ORCDRC Soil organic carbon
description
5 Organic carbon content in soil estimated using the method of Walkley-Black (Org. matter = Org. C x 1.72).
href
5 ftp://ftp-fc.sc.egov.usda.gov/NSSC/Lab_Methods_Manual/SSIR42_2004_view.pdf
type units minval maxval detectionLimit spcslot priority
5 numeric permille or g C kg-1 0 1000 1 horizons suggested
DomainId
5 NA
> ## make SAGA GIS palette:
> makeSAGAlegend(x=as.factor(names(pal)), col_pal=pal,
+ filename="ORCDRC.txt")
>
>
>
>
>
> dev.off()
null device
1
>