Description Usage Arguments Value See Also Examples
Plot twodimensional data given parameters of an MVN mixture model for the data.
1 2 3 4 5 6 7 8  mclust2Dplot(data, parameters = NULL, z = NULL,
classification = NULL, truth = NULL, uncertainty = NULL,
what = c("classification", "uncertainty", "error"),
addEllipses = TRUE, fillEllipses = mclust.options("fillEllipses"),
symbols = NULL, colors = NULL,
xlim = NULL, ylim = NULL, xlab = NULL, ylab = NULL,
scale = FALSE, cex = 1, PCH = ".",
main = FALSE, swapAxes = FALSE, ...)

data 
A numeric matrix or data frame of observations. Categorical variables are not allowed. If a matrix or data frame, rows correspond to observations and columns correspond to variables. In this case the data are two dimensional, so there are two columns. 
parameters 
A named list giving the parameters of an MCLUST model, used to produce superimposing ellipses on the plot. The relevant components are as follows:

z 
A matrix in which the 
classification 
A numeric or character vector representing a classification of
observations (rows) of 
truth 
A numeric or character vector giving a known
classification of each data point.
If 
uncertainty 
A numeric vector of values in (0,1) giving the
uncertainty of each data point. If present argument 
what 
Choose from one of the following three options: 
addEllipses 
A logical indicating whether or not to add ellipses with axes corresponding to the withincluster covariances. 
fillEllipses 
A logical specifying whether or not to fill ellipses with transparent
colors when 
symbols 
Either an integer or character vector assigning a plotting symbol to each
unique class in 
colors 
Either an integer or character vector assigning a color to each
unique class in 
xlim, ylim 
Optional argument specifying bounds for the ordinate, abscissa of the plot. This may be useful for when comparing plots. 
xlab, ylab 
Optional argument specifying labels for the xaxis and yaxis. 
scale 
A logical variable indicating whether or not the two chosen
dimensions should be plotted on the same scale, and
thus preserve the shape of the distribution.
Default: 
cex 
An argument specifying the size of the plotting symbols. The default value is 1. 
PCH 
An argument specifying the symbol to be used when a classificatiion has not been specified for the data. The default value is a small dot ".". 
main 
A logical variable or 
swapAxes 
A logical variable indicating whether or not the axes should be swapped for the plot. 
... 
Other graphics parameters. 
A plot showing the data, together with the location of the mixture components, classification, uncertainty, and/or classification errors.
surfacePlot
,
clPairs
,
coordProj
,
mclust.options
1 2 3 4 5 6 7  faithfulModel < Mclust(faithful)
mclust2Dplot(faithful, parameters=faithfulModel$parameters,
z=faithfulModel$z, what = "classification", main = TRUE)
mclust2Dplot(faithful, parameters=faithfulModel$parameters,
z=faithfulModel$z, what = "uncertainty", main = TRUE)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.