Learn R Programming

soilDB (version 1.8-7)

fetchOSD: Fetch Official Series Description (OSD) Data

Description

This functions fetches a limited subset of horizon and site-level attributes for named soil series, from the SoilWeb system.

Usage

fetchOSD(soils, colorState = 'moist')

Arguments

soils

a character vector of named soil series

colorState

color state for horizon soil color visualization: "moist" or "dry"

Value

a SoilProfileCollection object containing basic soil morphology and taxonomic information.

Details

the search is case-insensitive

References

http://www.nrcs.usda.gov/wps/portal/nrcs/detailfull/soils/home/?cid=nrcs142p2_053587

Examples

Run this code
# NOT RUN {
# soils of interest
s.list <- c('musick', 'cecil', 'drummer', 'amador', 'pentz', 
'reiff', 'san joaquin', 'montpellier', 'grangeville', 'pollasky', 'ramona')

# fetch and convert data into an SPC
s.moist <- fetchOSD(s.list, colorState='moist')
s.dry <- fetchOSD(s.list, colorState='dry')

# plot profiles
# moist soil colors
par(mar=c(0,0,0,0), mfrow=c(2,1))
plot(s.moist, name='hzname', cex.names=0.85, axis.line.offset=-4)
plot(s.dry, name='hzname', cex.names=0.85, axis.line.offset=-4)
# }

Run the code above in your browser using DataLab