有没有办法在hclust树形图上计算两个节点的距离,定义为它们最低共同祖先的高度?
这里可以参考一个演示示例:Annotate the distance on nodes of a dendrograms
一个完美的解决方案是使用stats :: cophenetic()函数。