
mixproj
displays one standard deviation of an MVN mxiture
classification along with data in for selected pairs of
coordinates. Function mvn2plot
is used to plot the confidence
ellipses.mixproj(data, ms, partition, dimens, scale = F, k = 15, xlim, ylim,
xlab, ylab, col=partition, pch=partition, ...)
mvn2plot(mu, sigma, k, add=T, col=NULL, xlim=NULL, ylim=NULL, xlab=NULL,
ylab=NULL, ...)
mstep
calculation (a list consisting of
mu
and sigma
).plot
with default values.mvn2plot
to the existing plot.plot
.mstep
, clpairs
data(iris)
cl <- mhclass(mhtree(iris[,1:4], modelid = "VVV"),3)
z <- me( iris[,1:4], modelid = "VVV", ctoz(cl))
pars <- mstep(iris[,1:4], modelid="VVV", z)
mixproj(iris[,1:4], ms=pars, partition=ztoc(z), dimens=c(1,2))
### Plot only one cluster
mvn2plot(pars$mu[1:2,1], pars$sigma[1:2, 1:2, 1], 25, F, col="red")
Run the code above in your browser using DataLab