Learn R Programming

ChemoSpec (version 1.48-4)

plotScree: Scree Plot of PCA Results for a Spectra Object

Description

Function to draw a scree plot illustrating the importance of the components in a PCA analysis of a "Spectra" object.

Usage

plotScree(pca, title = "no title provided", ...)

Arguments

Value

None. Side effect is a plot.

Rdversion

1.1

Details

Technically, 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.

References

http://academic.depauw.edu/~hanson/ChemoSpec/ChemoSpec.html

Examples

Run this code
data(CuticleIR)
results <- classPCA(CuticleIR, choice = "noscale")
plotScree(results, title = "Cuticle IR Spectra")

Run the code above in your browser using DataLab