Learn R Programming

mclust (version 3.4.7)

plot.mclustBIC: BIC Plot

Description

Plots the BIC from mclust modeling via function mclustBIC.

Usage

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

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
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 fu
xlab
Optional label for the horizontal axis of the BIC plot.
ylim
Optional limits for the vertical axis of the BIC plot.
legendArgs
Arguments to pass to the legend function. Set to NULL for no legend.
CEX
A scalar controling the size of the splot symbols.
...
Other graphics parameters.

Value

  • A plot of the BIC values for the models specified in the modelNames argument.

References

C. Fraley and A. E. Raftery (2002). Model-based clustering, discriminant analysis, and density estimation. Journal of the American Statistical Association 97:611-631.

C. Fraley and A. E. Raftery (2006). MCLUST Version 3 for R: Normal Mixture Modeling and Model-Based Clustering, Technical Report no. 504, Department of Statistics, University of Washington.

See Also

mclustBIC

Examples

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

plot(mclustBIC(faithful))

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

Run the code above in your browser using DataLab