Learn R Programming

aqp (version 1.0)

sp4: Soil Chemical Data from Serpentinitic Soils of California

Description

Soil Chemical Data from Serpentinitic Soils of California

Usage

data(sp4)

Arguments

source

https://www.soils.org/publications/sssaj/articles/73/6/2087

Details

Selected soil physical and chemical data from (McGahan et al., 2009).

References

McGahan, D.G., Southard, R.J, Claassen, V.P. 2009. Plant-Available Calcium Varies Widely in Soils on Serpentinite Landscapes. Soil Sci. Soc. Am. J. 73: 2087-2095.

Examples

Run this code
data(sp4)

sp4$soil_color <- 'white'

# optionally color horizons with 'ex_Ca_to_Mg'
if(require(RColorBrewer)) {
  cols <- rev(brewer.pal(8, 'Spectral'))
  cr <- colorRamp(cols)
  sp4$soil_color <- rgb(cr(rescaler(sp4$ex_Ca_to_Mg, type='range')), max=255)
}

# init SPC object
depths(sp4) <- id ~ top + bottom

# plot
plot(sp4)

Run the code above in your browser using DataLab