Skip to contents

Plot the Usage Area of a Field Indicator for Hydric Soils

Usage

plot_indicator_usage(
  indicator,
  ext = NULL,
  plg = NULL,
  crs = NULL,
  test_areas = FALSE,
  overwrite = FALSE,
  dsn = NULL
)

Arguments

indicator

character. The alphanumeric code corresponding to the indicator of interest. For example: "A12"

ext

SpatExtent, SpatVector, SpatRaster, or character. Either a terra object that can be converted to SpatExtent. Alternately, a character vector denoting the usage constraints (one or more of "Approved", "Excluded", or "Testing"). The resulting SpatExtent is passed as the ext argument of terra::plot().

plg

list. Passed as plg argument of terra::plot().

crs

character. Optional: target coordinate reference system to project lrrmlra_geometry() result to. Default: NULL uses the "OGC:CRS84" geographic coordinate system.

test_areas

logical. Show areas where indicator is being tested? Default: FALSE

overwrite

logical. Passed to lrrmlra_geometry(). Default: FALSE

dsn

character. Passed to lrrmlra_geometry(). Default: NULL uses the default remote source via GDAL Virtual File System.

Value

This function is called for the side effect of creating output on the graphics pane.

Examples


par(mfrow = c(2, 1))
plot_indicator_usage("A5", test_areas = TRUE, ext = c("Approved", "Excluded"))
plot_indicator_usage("A9", test_areas = TRUE, ext = c("Approved", "Excluded"))