Displaying 1 result from an estimated 1 matches for "dend3".
Did you mean:
end3
2005 Jul 11
1
indexing into and modifying dendrograms
...}
dend2 <- dendrapply(dend1, addE)
## overlays the cNum ("cluster number") attribute on dendrogram
plot(dend2, main = "dend2")
## why does no plum polygon appear around the '4' for the root
## edge?
## swap order of clusters 2 and 3,
## i.e. 'flip' cluster 4
dend3 <- dend2
dend3[[1]] <- dend2[[2]]
dend3[[2]] <- dend2[[1]]
plot(dend3, main = "dend3")
## wish I could achieve with 'dend3 <- flip(dend2, cNum = 4)
## swap order of cluster 1 and object 1,
## i.e. 'flip' cluster 3
dend4 <- dend2
dend4[[2]][[1]] <- dend2[[2]]...