This function conducts an mclust analysis of the PCA results of a
Spectra object and displays the results in 3D. Classical or
robust confidence ellipses can be added if desired. Improperly classified
data points can be marked. The interactive plot is made via
and appears in a browser window. Note that the confidence ellipses computed
here are generated independently of the
Mclust results - they do not
correspond to the ellipses seen in 2D plots from
mclust3dSpectra( spectra, pca, pcs = 1:3, ellipse = TRUE, rob = FALSE, cl = 0.95, frac.pts.used = 0.8, truth = NULL, ... )
An object of S3 class
An object of class
An integer vector describing which PCs to use.
Logical indicating if confidence ellipses should be drawn.
ellipse = TRUE, indicates that robust
confidence ellipses should be drawn. If
FALSE, classical confidence
ellipses are drawn.
A number indicating the confidence interval for the ellipse.
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.
A character vector indicating the known group membership for
reach row of the PC scores. Generally this would be
Arguments to be passed to
The mclust model is returned invisibly, and a plot is produced.