The Clustergram

A graph for visualizing hierarchical and non-hierarchical cluster analyses

[PHOTO] In hierarchical cluster analysis dendrogram graphs are used to visualize how clusters are formed. I propose an alternative graph named clustergram to examine how cluster members are assigned to clusters as the number of clusters increases. This graph is useful in exploratory analysis for non-hierarchical clustering algorithms like k-means and for hierarchical cluster algorithms when the number of observations is large enough to make dendrograms impractical.

The clustergram is currently implemented in Stata and R.


Stata implementation
The ZIP file with the stata implementation contains the following stata programs :

R implementation
Tal Galili has implemented the clustergram in R. He gives the code and talks about it in his blog: Clustergram blog as part of

Return to Home Page
Remove navigation bar on the left