Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot.mclustBIC

BIC Plot for Model-Based Clustering


Description

Plots the BIC values returned by the mclustBIC function.

Usage

## S3 method for class 'mclustBIC'
plot(x, G = NULL, modelNames = NULL, 
     symbols = NULL, colors = NULL, 
     xlab = NULL, ylab = "BIC", 
     legendArgs = list(x = "bottomright", ncol = 2, cex = 1, inset = 0.01), 
     ...)

Arguments

x

Output from mclustBIC.

G

One or more numbers of components corresponding to models fit in x. The default is to plot the BIC for all of the numbers of components fit.

modelNames

One or more model names corresponding to models fit in x. The default is to plot the BIC for all of the models fit.

symbols

Either an integer or character vector assigning a plotting symbol to each unique class in classification. Elements in colors correspond to classes in order of appearance in the sequence of observations (the order used by the function unique). The default is given by mclust.options("classPlotSymbols").

colors

Either an integer or character vector assigning a color to each unique class in classification. Elements in colors correspond to classes in order of appearance in the sequence of observations (the order used by the function unique). The default is given by mclust.options("classPlotColors").

xlab

Optional label for the horizontal axis of the BIC plot.

ylab

Label for the vertical axis of the BIC plot.

legendArgs

Arguments to pass to the legend function. Set to NULL for no legend.

...

Other graphics parameters.

Value

A plot of the BIC values.

See Also

Examples

plot(mclustBIC(precip), legendArgs =  list(x = "bottomleft"))

plot(mclustBIC(faithful))

plot(mclustBIC(iris[,-5]))

mclust

Gaussian Mixture Modelling for Model-Based Clustering, Classification, and Density Estimation

v5.4.10
GPL (>= 2)
Authors
Chris Fraley [aut], Adrian E. Raftery [aut] (<https://orcid.org/0000-0002-6589-301X>), Luca Scrucca [aut, cre] (<https://orcid.org/0000-0003-3826-0484>), Thomas Brendan Murphy [ctb] (<https://orcid.org/0000-0002-5668-7046>), Michael Fop [ctb] (<https://orcid.org/0000-0003-3936-2757>)
Initial release
2022-05-20

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.