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.

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

## Arguments

x vector of boundary topography codes to be converted code values, adjust as needed vertical offset (depth units) used to create "chevron" effect

## Value

vector of vertical offsets with same length as x

## Details

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

## References

Field Book for Describing and Sampling Soils, version 3.0

plotSPC