plot.Mclust | R Documentation |
Plots for model-based clustering results, such as BIC, classification, uncertainty and density.
## S3 method for class 'Mclust'
plot(x, what = c("BIC", "classification", "uncertainty", "density"),
dimens = NULL, xlab = NULL, ylab = NULL,
addEllipses = TRUE, main = FALSE, ...)
x |
Output from |
what |
A string specifying the type of graph requested. Available choices are:
If not specified, in interactive sessions a menu of choices is proposed. |
dimens |
A vector of integers specifying the dimensions of the coordinate projections
in case of |
xlab , ylab |
Optional labels for the x-axis and the y-axis. |
addEllipses |
A logical indicating whether or not to add ellipses with axes
corresponding to the within-cluster covariances in case of
|
main |
A logical or |
... |
Other graphics parameters. |
For more flexibility in plotting, use mclust1Dplot
,
mclust2Dplot
, surfacePlot
, coordProj
, or
randProj
.
Mclust
,
plot.mclustBIC
,
plot.mclustICL
,
mclust1Dplot
,
mclust2Dplot
,
surfacePlot
,
coordProj
,
randProj
.
precipMclust <- Mclust(precip)
plot(precipMclust)
faithfulMclust <- Mclust(faithful)
plot(faithfulMclust)
irisMclust <- Mclust(iris[,-5])
plot(irisMclust)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.