Displaying 1 result from an estimated 1 matches for "aggtree".
Did you mean:
aggree
2005 Jul 11
1
indexing into and modifying dendrograms
...8,2.4),
c(2.1, 2.7),
c(5,2.6),
c(4.7,3.1))
plot(pts, xlim = c(0,6), ylim = c(0,4),type = "n",
xlab = "Feature 1", ylab = "Feature 2")
points(pts,pch = as.character(1:5))
## build a hierarhical tree, store as a dendrogram
aggTree <- hclust(dist(pts), method = "single")
(dend1 <- JB.as.dendrogram.hclust(aggTree))
## NOTE: only thing I added to official version of
## as.dendrogram.hclust:
## each node has an attribute cNum, which gives
## the merge step at which it was formed,
## i.e. gives the row of the merg...