Plot ANOVA-PCA Scores from a Spectra Object
Uses the results from aov_pcaSpectra to conduct PCA and plot
the scores.
Argument plot is used to select a matrix from those in LM.
The residual error matrix is then added to the selected matrix before
performing PCA.  Use names(LM) to see which factor is stored in which
matrix.
aovPCAscores(spectra, LM, plot = 1, type = "class", choice = NULL, ...)
spectra | 
 An object of S3 class   | 
LM | 
 List of matrices created by   | 
plot | 
 An integer specifying which scores to plot.  | 
type | 
 Either classical ("cls") or robust ("rob"); Results in either
  | 
choice | 
 The type of scaling to be performed.  See
  | 
... | 
 Additional parameters to be passed to   | 
Returns the PCA results, and creates the requested plot.
Matthew J. Keinsley and Bryan A. Hanson, DePauw University.
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.
The use of this function can be seen in
aov_pcaSpectra.  See also plotScores.
Additional documentation at https://bryanhanson.github.io/ChemoSpec/
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.