plot_spec_regions: Plot polygons for spectral regions

Description Usage Arguments Value

Description

spec_regions = cbind("VIS" = c(begin = 400, end = 700), "NIR" = c(begin = 800, end = 1300), "SWIR1" = c(begin = 1550, end = 1800), "SWIR2" = c(begin = 2000, end = 2400))

Usage

1
2
plot_spec_regions(spec, regions, col = rgb(0.7, 0.7, 0.7, 0.3),
  border = FALSE, add = FALSE, names = TRUE, ...)

Arguments

spec

spectra object

regions

matrix with spectral regions in columns and only two rows named "begin" and "end". Values are the wavelengths where a spectral regions begins and ends. See details for an example

col

color for regions. single value or vector of length ncol(regions)

border

color for region borders. Defaults to FALSE (no border)

add

boolean. If TRUE (default) adds polygons to current plot. Otherwise a new plot is created **without** any spectra.

names

boolean. add region column names on top of the polygons?

...

additional parameters passed to polygon()

Value

nothing. called for its side effect


annakat/casper_defunct documentation built on May 10, 2019, 11:50 a.m.