Learn R Programming

EMCluster (version 0.2-16)

Plot Multivariate Data: Plot Multivariate Data

Description

The function plots multivariate data for clusters as the parallel coordinates plot.

Usage

plotmd(x, class = NULL, xlab = "Variables", ylab = "Data", ...)

Value

A plot is returned.

Arguments

x

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

class

class id for all observations.

xlab

label of x-axis.

ylab

label of y-axis.

...

other parameters to the plot.

Author

Wei-Chen Chen wccsnow@gmail.com and Ranjan Maitra.

Details

This a simplified parallel coordinate plot.

References

https://www.stat.iastate.edu/people/ranjan-maitra

See Also

init.EM, emcluster.

Examples

Run this code
if (FALSE) {
library(EMCluster, quietly = TRUE)
set.seed(1234)

x <- as.matrix(iris[, 1:4], ncol = 4)
ret <- em.EM(x, nclass = 5)
plotmd(x, ret$class)
}

Run the code above in your browser using DataLab