Site icon R-bloggers

"R" : Identifying peaks

[This article was first published on NIR-Quimiometria, 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.
The function “identify”  from “R”,  is very useful to check the spectrum for peaks or areas of interest. I use it here to see the wavelength with the highest variability in the Shootout-2012 Calibration Set.

This wavelength has a high variability due to the changes in concentration of the Active component in the mixture.

See the video to see how I use the function:



There are two books that I recomend to have to practice Chemometrics in R, you can find the links to get them from Amazon. Now that Christmas time is coming they can be nice presents to somebody. I will use them quite often as Bibliography in this blog.

We can use the identify option to check for the variables in X with the highest extreme loadings. In this case I use the element “rotation” generated by the object “prcomp”.

Let´s use the same salple set as before: Shootout-2012 Calibration Set, and see the video:



As you can see the 216 value has the extreme value in both plots.





To leave a comment for the author, please follow the link and comment on their blog: NIR-Quimiometria.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.