Description Usage Arguments Value
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))
1 2 |
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() |
nothing. called for its side effect
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.