Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Make a histogram of the heights in a clustering tree
ResourceFunction["ClusteringTreeHeightHistogram"][tree] plots a histogram of the cluster heights in the ClusteringTree tree. | |
ResourceFunction["ClusteringTreeHeightHistogram"][tree,bspec] plots a histogram with bin width specification bspec. | |
ResourceFunction["ClusteringTreeHeightHistogram"][tree,bspec,hspec] plots a histogram with bin heights computed according to the specification hspec. |
Obtain a cluster hierarchy from a list of numbers:
In[1]:= |
In[2]:= |
Out[2]= |
Plot the histogram of heights at which the clusters merge:
In[3]:= |
Out[3]= |
Make a list of data:
In[7]:= |
Compute the clustering tree:
In[8]:= |
Out[8]= |
Plot the histogram of heights to help choose a height at which to cut the tree:
In[9]:= |
Out[9]= |
Plot the dendrogram to help choose a height at which to cut the tree:
In[10]:= |
Out[10]= |
Extract the clusters at a height of 200:
In[11]:= |
Out[11]= |
Plot the locations of the cites colored by cluster:
In[12]:= |
Out[12]= |
Wolfram Language 13.0 (December 2021) or above
This work is licensed under a Creative Commons Attribution 4.0 International License