Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

aovPCAloadings

Plot aovPCAscores 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 aovPCAscores.

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.

Author(s)

Matthew J. Keinsley and Bryan A. Hanson, DePauw University.

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.

See Also

An example using this function can be seen in aov_pcaSpectra. See also plotLoadings. Additional documentation at https://bryanhanson.github.io/ChemoSpec/


ChemoSpec

Exploratory Chemometrics for Spectroscopy

v5.3.11
GPL-3
Authors
Bryan A. Hanson [aut, cre] (<https://orcid.org/0000-0003-3536-8246>), Mike Bostock [cph, ctb] (author of the d3.js library used by plotSpectraJS, http://d3js.org), Matt Keinsley [ctb] (author of initial AOV-PCA code)
Initial release
2021-03-24

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.