I have been using the R package ChemoSpec to apply a principal component analysis of infrared spectra. The function “plotLoadings” shows the loadings plots of the PCA. I can´t find a function that only calculates the loadings, without a plot. Is there an option to load or depict the wavenumbers in the loadings plots or easier is there a way to extract the loadings of each principal component?
I tried to connect the “plotLoadings” function to “write.table” which as expected didnt work.
Thanks in advance!