"Spectra"
object, color coded according the to scheme stored in the object.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, ...)
"Spectra"
.prcomp
, modified to include a list element called $method
, a character string describing the pre-processing carried out and the type of PCA performed (it appears on the plot).ellipse = TRUE
, indicates that robust confidence ellipses should be drawn. If FALSE
, classical confidence ellipses are drawn.ellipse = TRUE
and rob = TRUE
, a number indicating the fraction of the data points to be considered "good" and thus used to compute the robust confidence ellipse.view = list(x = 45, y = 10)
produces a different vplotScores
. For more sophisticated 3D plots, use plotScoresRGL
.data(CuticleIR)
results <- classPCA(CuticleIR, choice = "noscale")
plotScores3D(CuticleIR, results, main = "Cuticle IR Spectra")
Run the code above in your browser using DataLab