[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.
“R” has a package called “ChemometricsWithR”, where we can get data from different analytical instruments including Near Infrared (NIR).
Follow the steps to plot the spectra of a gasoline data set:
In this other case we plot the spectra of the NIR shootout 2002:
> wavelengths<-seq(600, 1898,by=2)
> data(gasoline, package=”pls”)
> wavelengths<-seq(900, 1700,by=2)
If you got this far, why not subscribe for updates
from the site? Choose your flavor: e-mail
, or facebook