clusterfly (version 0.4)

cut.hierfly: Cut hierfly object into k clusters/colours.

Description

Cut hierfly object into k clusters/colours.

Usage

"cut"(x, k = 2, g = ggobi(x), ...)

Arguments

x
hierfly object to colour
k
number of clusters
g
GGobi instance displaying x, will create new if not specified
...
ignored

Examples

Run this code
h <- hierfly(iris)
hfly <- ggobi(h)
cut(h, 2, hfly)
h <- hierfly(iris, method="ward")
g <- ggobi(h)
cut(h, 2, g)

Run the code above in your browser using DataCamp Workspace