Learn R Programming

mclust (version 1.1-7)

clpairs: Classifications for hierarchical clustering.

Description

Gives classifications corresponding to the stages of hierarchical clustering.

Usage

clpairs(x, partition, col=partition, ...)

Arguments

x
matrix of observations.
partition
a vector of integers indicating a partition of the data.
col
the default is to color the objects according to the partition.
...
other arguments as specified by pairs

Value

  • a matrix whose columns are the classifications corresponding to each value of nclusters.

See Also

pairs, mixproj

Examples

Run this code
data(iris)
cl <- mhclass(mhtree(iris[,1:4], modelid="VVV"), 3)
clpairs(iris[,1:4],cl)

Run the code above in your browser using DataLab