snv | R Documentation |
SNV transformation of the row observations (usually spectra) of a data set. By default, each observation is centered on its mean and divided by its standard deviation.
snv(X, center = TRUE, scale = TRUE)
X |
A matrix or data frame. The column names of |
center |
Logical. If |
scale |
Logical. If |
A matrix of the transformed data.
data(datcass)
X <- datcass$Xu
z <- snv(X)
#z <- snv(X, center = FALSE)
headm(X)
headm(z)
oldpar <- par(mfrow = c(1, 1))
par(mfrow = c(1, 2))
plotsp(X, main = "Signal")
plotsp(z, zeroes = TRUE, main = "Corrected signal")
par(oldpar)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.