plot_hclust_trace: Plot a merging trace

View source: R/mining.R

plot_hclust_traceR Documentation

Plot a merging trace

Description

Plots the cost of successive merges in a hierarchical clustering

Usage

plot_hclust_trace(h, k = 1:10)

Arguments

h

an hclust object

ka

vector of the cluster cardinalities to plot

Value

The trace shows, for each merge, the distance of the clusters which were merged. This is useful for determining the appropriate number of clusters. An interesting number of clusters is one that directly precedes a sudden jump in distance.

Author(s)

Tom Minka

See Also

ward, break_ward


paulemms/datamining documentation built on March 1, 2023, 4:01 p.m.