*️⃣ hyperSpec
Arguments
- ...
Arguments passed on to
hyperSpec::hyperSpecspc(
matrixor convertible tomatrix)
A spectra matrix with spectra in rows and wavelength intensities in columns.The
spcdoes not need to be an Rmatrix, but it must be an object convertible to a matrix viaI(as.matrix(spc)).data(
data.frame)
Adata.framewith extra (non-spectroscopic) data in columns. The data frame may also contain a special columnspcwith amatrixof spectroscopic data. (Such a single column that contains a matrix can be created withdata.frame(spc = I(as.matrix(spc))). However, it is usually more convenient to provide the spectra via thespcargument.)wavelength(numeric vector)
The wavelengths corresponding to the columns ofspc.If no wavelengths are given, an appropriate vector is derived from the column names of
data$spc. If this is not possible,1:ncol(data$spc)is used instead.labelsA named
list:list's element names should contain one or more names of
datacolumns as well as the special name.wavelengthforwavelengths.list's element values should contain the labels for the indicated names, usually in the form of character strings or plotmath expressions. (The labels should be given in a form ready for the text-drawing functions, see
grDevices::plotmath()).
If
labelis not given, a list containingNULLfor each of the columns ofdataandwavelengthis used.gc(logical)
Use garbage collection. If the optiongcis set toTRUE, the initialization will have frequent calls tobase::gc(), which can help avoid swapping or running out of memory. The default value ofgccan be set viahy_set_options().
