nsr | R Documentation |
It is a normalization of SR by doing NSR = (1-SR)/(1+SR), with the same two spectral bands.
nsr(s, b1, b2)
lm.nsr(s, b1, b2, y)
s |
Spectral data in the format of visa's Spectra object, spectra.dataframe or spectra.matrix. |
b1 |
A integer number which defines the wavelength of the 1st spectral band. |
b2 |
A integer number which defines the wavelength of the 2nd spectral band. |
y |
A numeric variable to correlate with SR |
As it exactly reads in its name, it is a normalization of the SR and ranges in (0,1).
nsr |
Returns a NSR index. |
p |
Returns a ggplot object. |
s <- NSpec.DF$spectra
nsr1 <- nsr(s, 480, 550)
s <- NSpec.DF
y <- NSpec.DF$N
lm.nsr(s,600,500,y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.