aovPCAscores {ChemoSpec} | R Documentation |
Plot ANOVA-PCA Scores from a Spectra Object
Description
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
.
Usage
aovPCAscores(
spectra,
so,
submat = 1,
ellipse = "none",
tol = "none",
use.sym = FALSE,
leg.loc = "topright",
...
)
Arguments
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 |
Value
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()
ornames()
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 usualggplot2
manner. If you want the plotted values, you can access them via the base graphics mode.
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
The use of this function can be seen in
aov_pcaSpectra
. See also plotScores
.
Additional documentation at https://bryanhanson.github.io/ChemoSpec/