Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

hzTopographyCodeToOffset

Convert Horizon Boundary Topography to Vertical Offset


Description

This function will convert USDA-NCSS horizon boundary topography codes into a vertical offset, suitable for use in plotSPC. Default values are reasonable starting points for encoding smooth, wavy, irregular, or broken style horizon boundary topography as defined in Field Book for Describing and Sampling Soils, version 3.0.

Usage

hzTopographyCodeToOffset(
  x,
  codes = c("S", "W", "I", "B"),
  offset = c(0, 4, 8, 12)
)

Arguments

x

vector of boundary topography codes to be converted

codes

code values, adjust as needed

offset

vertical offset (depth units) used to create "chevron" effect

Details

Additional examples are available in the Visualization of Horizon Boundaries tutorial.

Value

vector of vertical offsets with same length as x

Author(s)

D.E. Beaudette

References

See Also


aqp

Algorithms for Quantitative Pedology

v1.29
GPL (>= 3)
Authors
Dylan Beaudette [aut, cre], Pierre Roudier [aut, ctb], Andrew Brown [aut, ctb]
Initial release
2021-04-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.