Learn R Programming

ChemoSpec (version 2.0-2)

plotScores: Plot PCA Scores of a Spectra Object

Description

Plots the requested PCA scores using the color scheme derived from a "Spectra" object. Options are provided to add confidence ellipses for each group in the object. The ellipses may be robust or classical. Option to label the extreme points provided.

Usage

plotScores(spectra, pca, pcs = c(1, 2),
	ellipse = "none", tol = "none",
	use.sym = FALSE, ...)

Arguments

Value

None. Side effect is a plot.

Rdversion

1.1

References

http://academic.depauw.edu/~hanson/ChemoSpec/ChemoSpec.html

See Also

For other ways of displaying the results, plotScree, plotLoadings, plot2Loadings. For a 3D plot of the scores, see plotScores3D.

Examples

Run this code
data(SrE.IR)
results <- classPCA(SrE.IR, choice = "noscale")
myt <- expression(bolditalic(Serenoa)~bolditalic(repens)~bold(IR~Spectra))
plotScores(SrE.IR, main = myt, results,
	pcs = c(1,2), ellipse = "rob", tol = 0.05)

Run the code above in your browser using DataLab