Plotting the “Mean Spectrum”
[This article was first published on NIR-Quimiometría
, and kindly contributed to R-bloggers
]. (You can report issue about the content on this page here
Want to share your content on R-bloggers? click here
if you have a blog, or here
if you don't.
Mean spectrum calculation is important:
To center a matrix of spectra, we subtract the mean spectrum, from every spectrum in the matrix.
There are also many options to use the mean spectrum, like average subsamples.
Let´s calculate and plot the mean spectra for the Yarn NIR Data:
+ xlab=”data_points”,ylab=”mean spec.”)
We can see in the following plot the X matrix centered:
If you got this far, why not subscribe for updates
from the site? Choose your flavor: e-mail
, or facebook