The functions plot two dimensional data for clusters.
plotem(emobj, x, main = NULL, xlab = NULL, ylab = NULL, ...) plot2d(x, emobj = NULL, k = NULL, color.pch = 1, append.BN = TRUE, ...)
the desired model which is a list mainly contains pi, Mu, and LTSigma, usually a returned object from init.EM.
pi
Mu
LTSigma
init.EM
the data matrix, dimension \(n\times p\).
title of plot.
label of x-axis.
label of y-axis.
other parameters to the plot.
index for symbols.
color and style for symbols.
if appending bivariate normal ellipsoid.
A plot is returned.
This a simple x-y lot.
http://maitra.public.iastate.edu/
init.EM, emcluster.
emcluster
# NOT RUN { library(EMCluster, quietly = TRUE) x1 <- da1$da ret.1 <- starts.via.svd(x1, nclass = 10, method = "em") summary(ret.1) plotem(ret.1, x1) # }
Run the code above in your browser using DataCamp Workspace