Learn R Programming

ChemoSpec (version 1.48-4)

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(CuticleIR)
results <- classPCA(CuticleIR, choice = "noscale")
plotLoadings(CuticleIR, results, title = "Cuticle IR Spectra",
	loads = c(1), ref = 1)

Run the code above in your browser using DataLab