hzTopographyCodeToLineType: Convert Horizon Boundary Topography to Line Type

View source: R/hzBoundary.R

hzTopographyCodeToLineTypeR Documentation

Convert Horizon Boundary Topography to Line Type

Description

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.

Usage

hzTopographyCodeToLineType(
  x,
  codes = c("smooth", "wavy", "irregular", "broken"),
  lty = c(1, 2, 3, 4)
)

Arguments

x

vector of boundary topography codes to be converted

codes

character vector of topography terms ('smooth') or codes ('S'), case insensitive, see details

lty

line types

Details

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')

Value

vector of line types with same length as x

Author(s)

D.E. Beaudette

References

Field Book for Describing and Sampling Soils, version 3.0

See Also

plotSPC, hzTopographyCodeToOffset


ncss-tech/aqp documentation built on March 28, 2024, 7:22 p.m.