I have a dendrogram given to me as images. Since it is not very large, I can construct it “by hand” into an R object.
So my question is how do I manually create a dendrogram (or “hclust”) object when all I have is the dendrogram image?
I see that there is a function called “as.dendrogram” But I wasn’t able to find an example on how to use it.
(p.s: This post is following my question from here)
Many thanks,
Tal
I think you are better of creating an
hclustobject, and then converting it to a dendrogram usingas.dendrogram, then trying to create a dendrogram directly. Look at the?hclusthelp page to see the meaning of the elements of anhclustobject.Here is a simple example with four leaves A, B, C, and D, combining first A-B, then C-D, and finally AB-CD: