aovPCAloadings {ChemoSpec} | R Documentation |
Plot aovPCAscores Loadings of a Spectra Object
Description
Uses the results from aovPCAscores
to plot the corresponding
loadings.
Usage
aovPCAloadings(spectra, PCA, submat = 1, loads = 1, ref = 1, ...)
Arguments
spectra |
An object of S3 class |
PCA |
List of pca results created by |
submat |
Integer. Selects list element |
loads |
An integer vector giving the loadings to plot. |
ref |
An integer specifying the reference spectrum to plot, which appears at the bottom of the plot. |
... |
Parameters to be passed to the plotting routines. Applies to base graphics only. |
Value
The returned value depends on the graphics option selected (see GraphicsOptions()
).
-
base
: None. Side effect is a plot. -
ggplot2
: The plot is displayed, and aggplot2
object is returned if the value is assigned. The plot can be modified in the usualggplot2
manner.
Author(s)
Bryan A. Hanson (DePauw University), Matthew J. Keinsley.
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/