Learn R Programming

ChemoSpec (version 1.48-4)

plotScoresG: Plot PCA Scores of a Spectra Object using GGobi

Description

Plots the specified PCs from a PCA analysis of a "Spectra" object using GGobi.

Usage

plotScoresG(spectra, pca, pcs = c(1:3), scheme = "primary")

Arguments

Value

None. Side effect is a plot in an X11 window created by GGobi. The mapping of colors from the Spectra object to the GGobi color schemes is printed at the console, since the original color choices may not be acceptable to GGobi.

Rdversion

1.1

References

http://academic.depauw.edu/~hanson/ChemoSpec/ChemoSpec.html http://www.ggobi.org/ D. Cook & D. F. Swayne, Interactive and Dynamic Graphics for Data Analysis with R and GGobi, Springer 2007.

See Also

For plotting only 3 scores with rudimentary control over the view, see plotScores3D. For an interactive plot of exactly 3 scores, see plotScoresRGL. For plotting 2 scores, see plotScores. For details on color options, see colorSymbol.

Examples

Run this code
data(CuticleIR)
require(rggobi)
results <- classPCA(CuticleIR, choice = "noscale")
plotScoresG(CuticleIR, results)
# GGobi runs interactively using X11

Run the code above in your browser using DataLab