I am using R to plot a dendrogram of a hierarchial clustering.
I have realised a hierarchical clustering of ~3000 elements. The plot of the corresponding tree is obviously super messy. These 3000 elements are clustered in 20 groups using the cutree function. What I want is to plot the tree by cluster (i.e. truncated at the nodes where each cluster originate labeled appropriately by cluster => a tree with 20 terminal leaves).