Description Usage Arguments Examples
Estimate spectral data at a new set of wavelengths through interpolation using approx().
1 2 3 4 | spc.interp.spectral(source1,target_lbd,show.plot, ...)
## S4 method for signature 'Spectra'
spc.interp.spectral(source1, target_lbd, show.plot = FALSE)
|
source1 |
A |
target_lbd |
numeric vector giving desired wavelengths |
show.plot |
logical TRUE if a graphical representation is required |
... |
further arguments to pass on to approx(). |
1 2 3 4 5 6 7 | sp=spc.example_spectra()
lbd = as.numeric(c(412,440,490,555,670))
sp2 = spc.interp.spectral(sp[,lbd],c(430,450,500))
spc.plot.overlay(SpcList(list(sp,sp2)))
#Quick Plot only the first row
spc.interp.spectral(sp[,lbd],c(430,450,500),show.plot=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.