Hi all,
I need to compare the clusters of dendrogram by using R program? I did hierarchical clustering(protein sequences) using hclust function and I got 27 clusters. Next I would like to know the names of proteins in each cluster for comparison. Which function do I have to use for this?I used cutree function to cut dendrogram at a particular height.But I don't know how to find the elements of each cluster.I used following code to do Hierarchial clustering.
fit= hclust(as.dist(seq), method = "single")
plot(fit)
democut=cutree(fit,h=20)
plot(fit, labels = as.character(democut))
table(democut)
How could I get the elements from each cluster and is there any package in R to solve this problem?
Add the protein names as rownames and colnames to your matrix seq, then you should be fine.