Learn R Programming

ChemoSpec (version 4.2.8)

plotScores3D: 3D PCA Score Plot for a Spectra Object

Description

Creates a basic 3D plot of PCA scores from the analysis of a Spectra object, color coded according the to scheme stored in the object.

Usage

plotScores3D(spectra, pca, pcs = c(1:3),
	ellipse = TRUE, rob = FALSE,
	cl = 0.95, frac.pts.used = 0.80,
	view = list(y = 34, x = 10, z = 0),
	tol = 0.01, use.sym = FALSE, ...)

Arguments

Value

None. Side effect is a plot.

Rdversion

1.1

References

https://github.com/bryanhanson/ChemoSpec

See Also

For a 2D plot of the scores, see plotScores. For more sophisticated 3D plots, use plotScoresRGL.

Examples

Run this code
data(metMUD1)
results <- c_pcaSpectra(metMUD1, choice = "noscale")
plotScores3D(metMUD1, results, main = "metMUD1 NMR Spectra")

Run the code above in your browser using DataLab