Displaying 1 result from an estimated 1 matches for "var_hc".
Did you mean:
var_5c
2010 May 25
1
Hierarchical clustering using own distance matrices
...istance etc.)
I understand as.dist is the function for this, but the distances in the
dendrogram i got by using the following script(1) were not the distances
defined in my distance matrices.
script:
var<-read.table("the distance matrix i calculated", header=TRUE, sep=" ")
var_HC<-hclust(as.dist(var),method="average")
var_dendro<-as.dendrogram(var_HC)
plot(var_dendro,ylim=c(0,5), nodePar =list(lab.cex = 0.3), header=title(" My
Distance Matrix"))
I did some research and found that the hclust function (from the hclust help
page):
"...Init...