aovPCAscores | R Documentation |
Uses the results from aov_pcaSpectra
to plot the scores.
Argument submat
is used to select PCA results from among those
stored in argument PCA
.
aovPCAscores(
spectra,
so,
submat = 1,
ellipse = "none",
tol = "none",
use.sym = FALSE,
leg.loc = "topright",
...
)
spectra |
An object of S3 class |
so |
List of pca results created by |
submat |
Integer. Selects list element |
ellipse |
A character vector specifying the type of ellipses to be
plotted. One of |
tol |
A number describing the fraction of points to be labeled. |
use.sym |
A logical; if TRUE, the color scheme is set to black and the
points plotted with symbols. Applies only to |
leg.loc |
Character; if |
... |
Additional parameters to be passed to |
The returned value depends on the graphics option selected (see ChemoSpecUtils::GraphicsOptions()
).
base A data frame or list containing the data plotted. Assign the value and run str()
or names()
on it to see what it contains. Side effect is a plot.
ggplot2 The plot is displayed, and a ggplot2
plot object is returned if the value is assigned. The plot can be modified in the usual ggplot2
manner. If you want the plotted values, you can access them via the base graphics mode.
Bryan A. Hanson (DePauw University), Matthew J. Keinsley.
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/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.