Hierarchical Clustering and Heat Maps in Mathematica

Requires a Wolfram Notebook System
Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.
Hierarchical clustering is a way to expose the hidden structure of a complex, high-dimensional dataset. Heat maps are a common way to visualize the results of such clustering algorithms. This Demonstration shows how to use the HierarchicalClustering package in Mathematica to generate heat maps with the dendrograms included on the sides of the heat map.
[more]
Contributed by: Michael A Gibson (June 2015)
Open content licensed under CC BY-NC-SA
Snapshots
Details
This Demonstration is based on a program originally presented on the Mathematica Stack Exchange blog by user verbeia, incorporating the edits suggested by user kguler and several original modifications. The original blog post can be found at [1].
A word of caution: Only the functions contained in this notebook are fully accurate in terms of matching the dendrograms to the displayed data. The previous implementations mentioned are not correct. While the author wants to give attribution to others' code, it should not be used unless corrected in the manner shown above.
Reference
[1] verbeia. "Turning Up the Heat Maps." Mathematica Stack Exchange. (Jun 10, 2015) mathematica.blogoverflow.com/2012/10/turning-up-the-heat-maps.
Permanent Citation