R/hzBoundary.R
hzTopographyCodeToLineType.Rd
This function will convert USDA-NCSS horizon boundary topography codes into line types, based on the Field Book for Describing and Sampling Soils, version 3.0.
vector of line types with same length as x
Visualization of horizon boundary topography can be difficult, line type offers an additional visual cue. See hzTopographyCodeToOffset
for an offset-based approach. Additional examples are available in the Visualization of Horizon Boundaries tutorial. Missing data in x
(NA) or codes that are not defined in codes
are returned as line type 1.
Either format (or mixture) are accepted, case insensitive:
terms: c('smooth', 'wavy', 'irregular', 'broken')
coded values: c('s', 'w', 'i', 'b')