EMCluster (version 0.2-10)

Plot EM Results: Plot Two Dimensional Data with clusters

Description

The functions plot two dimensional data for clusters.

Usage

plotem(emobj, x, main = NULL, xlab = NULL, ylab = NULL,
       ...)
plot2d(x, emobj = NULL, k = NULL, color.pch = 1,
       append.BN = TRUE, ...)

Arguments

emobj

the desired model which is a list mainly contains pi, Mu, and LTSigma, usually a returned object from init.EM.

x

the data matrix, dimension \(n\times p\).

main

title of plot.

xlab

label of x-axis.

ylab

label of y-axis.

other parameters to the plot.

k

index for symbols.

color.pch

color and style for symbols.

append.BN

if appending bivariate normal ellipsoid.

Value

A plot is returned.

Details

This a simple x-y lot.

References

http://maitra.public.iastate.edu/

See Also

init.EM, emcluster.

Examples

Run this code
# 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