Learn R Programming

ChemoSpec (version 1.51-0)

plotLoadings: Plot PCA Loadings for a Spectra Object

Description

Creates a multi-panel plot of loadings along with a reference spectrum.

Usage

plotLoadings(spectra, pca, title = "no title provided",
	loads = c(1), ref = 1, ...)

Arguments

Value

None. Side effect is a plot.

Rdversion

1.1

References

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

See Also

See plot2Loadings to plot two loadings against each other.

Examples

Run this code
data(SrE.IR)
results <- classPCA(SrE.IR, choice = "noscale")
plotLoadings(SrE.IR, results, title = "Serenoa repens IR Spectra",
	loads = 1:2, ref = 1)

Run the code above in your browser using DataLab