| plotScree {ChemoSpec} | R Documentation |
Functions to draw a traditional scree plot or an alternative that is perhaps more useful. These illustrate the importance of the components in a PCA analysis.
plotScree(pca, ...) plotScree2(pca, ...)
pca |
An object of class |
... |
Additional parameters to be passed to plotting functions. |
If you add $method to the PCA results from other packages, this will
plot a scree plot for any PCA results, not just those from
Spectra objects.
None. Side effect is a plot.
plotScree: Traditional scree plot
plotScree2: Alternate scree plot
Bryan A. Hanson, DePauw University.
The idea for the alternative style plot came from the NIR-Quimiometria blog by jrcuesta, at https://nir-quimiometria.blogspot.com/2012/02/pca-for-nir-spectrapart-004-projections.html
https://github.com/bryanhanson/ChemoSpec
data(metMUD1) pca <- c_pcaSpectra(metMUD1) plotScree(pca, main = "metMUD1 NMR Data") plotScree2(pca, main = "metMUD1 NMR Data")