Learn R Programming

ChemoSpec (version 3.0-1)

aovPCAloadings: Plot aovPCA Loadings of a Spectra Object

Description

Uses the results from aovPCAscores to plot the corresponding loadings.

Usage

aovPCAloadings(spectra, LM, pca, plot = 1, loads = 1, ref = 1, ...)

Arguments

spectra
An object of S3 class Spectra.
LM
List of matrices created by aovPCA
pca
PCA output from aovPCAscores.
plot
An integer specifying the desired plot. names(LM) will show which matrix has which data in it.
loads
An integer vector giving the loadings to plot. More than 3 loadings creates a useless plot using the default graphics window.
ref
An integer specifying the reference spectrum to plot, which appears at the bottom of the plot.
...
Additional parameters to be passed to plotting functions.

Value

  • None. Side effect is a plot.

References

Pinto, Bosc, Nocairi, Barros, and Rutledge. "Using ANOVA-PCA for Discriminant Analysis: ..." Analytica Chimica Acta 629.1-2 (2008): 47-55.

Harrington, Vieira, Espinoza, Nien, Romero, and Yergey. "Analysis of Variance--Principal Component Analysis: ..." Analytica Chimica Acta 544.1-2 (2005): 118-27.

https://github.com/bryanhanson/ChemoSpec

See Also

An example using this function can be seen in aovPCA. See also plotLoadings.