Learn R Programming

mclust (version 5.4.1)

plot.mclustBIC: BIC Plot for Model-Based Clustering

Description

Plots the BIC values returned by the mclustBIC function.

Usage

# S3 method for mclustBIC
plot(x, G = NULL, modelNames = NULL, 
     symbols = NULL, colors = NULL, 
     xlab = NULL, ylab = "BIC", ylim = NULL,
     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.

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.

Other graphics parameters.

Value

A plot of the BIC values.

See Also

mclustBIC

Examples

Run this code
# NOT RUN {
plot(mclustBIC(precip), legendArgs =  list(x = "bottomleft"))

plot(mclustBIC(faithful))

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

Run the code above in your browser using DataLab