Methods to create, manipulate and query objects of class 'Clman'.
Methods to create, manipulate and query objects of class 'Clman'. The class 'Clman' is used to store manually defined continuum lines and the associated spectra.
## Creation of objects ## S4 method for signature 'Clman' initialize(.Object, ...) ## S4 method for signature 'Clman' spectra(object, ...) ## S4 replacement method for signature 'Clman,data.frame' spectra(object) <- value ## S4 replacement method for signature 'Clman,matrix' spectra(object) <- value ## S4 replacement method for signature 'Clman,numeric' spectra(object) <- value ## S4 method for signature 'Clman' plot(x, ispec, subset = NULL, numeratepoints = TRUE, hull.style = NULL, points.style = list(), ...)
.Object,object |
Matrix, numeric or array in cases of creation of 'Clman' objects otherwise object of class 'Clman'. |
value |
Object of class numeric, matrix or array which is used for replacement of the values in x. |
... |
Arguments passed to |
x |
Object of class |
ispec |
Name or index of spectrum to be plotted. |
subset |
Lower and upper spectral limits used for plot. |
numeratepoints |
Flag if points should be numerated in plot. |
hull.style |
List of arguments passed to |
points.style |
List of arguments passed to |
For spectra<-
, the updated object. Otherwise a matrix returning the spectra in the Clman object.
The functions to create objects of class Clman
are mainly internally needed by transformSpeclib
.
Lukas Lehnert
## Model spectra using PROSAIL parameter <- data.frame(N = rep.int(c(1, 1.5),2), LAI = c(1,1,3,3)) spec <- PROSAIL(parameterList=parameter) ## Transform spectra spec_clman <- transformSpeclib(spec, method = "sh", out = "raw") ## Return first spectrum spectra(spec_clman)[1,] ## Plot clman plot(spec_clman, ispec = 1, subset = c(400, 1000))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.