Learn R Programming

ChemoSpec (version 4.2.8)

mclustSpectra: mclust Analysis of a Spectra Object PCA Results

Description

This function is a wrapper for the Mclust function and associated plotting functions.

Usage

mclustSpectra(spectra, pca, pcs = c(1:3), dims = c(1, 2),
	plot = c("BIC", "proj", "error"), use.sym = FALSE, ...)

Arguments

Value

The Mclust model is returned invisibly, and a plot is made.

References

https://github.com/bryanhanson/ChemoSpec

See Also

Mclust for the underlying function.

Examples

Run this code
require("mclust")
data(SrE.IR)
class <- c_pcaSpectra(SrE.IR, choice = "autoscale")
mclustSpectra(SrE.IR, class, main = "Cuticle IR", plot = "BIC")
mclustSpectra(SrE.IR, class, main = "Cuticle IR", plot = "proj")
mclustSpectra(SrE.IR, class, main = "Cuticle IR", plot = "error",
	truth = metMUD1$groups)

Run the code above in your browser using DataLab