optimTree.dendrogram {compdiagTools} | R Documentation |
Function as.dendrogram
reorders the hclust
object, optimTree.dendrogram
does not. The function uses reorder
and computes suitable weights.
optimTree.dendrogram(hclust.obj)
hclust.obj |
An hclust object. |
Returns a dendrogram
object.
Stefanie Scheid <stefanie.scheid@molgen.mpg.de>
a <- rbind(rep(0,4), c(1,rep(0,3)), c(5,2,0,0), c(3,9,7,0)) a <- as.dist(a) hc.old <- hclust(a,method="average") hc.new <- optimTree(hc.old,a) plot(hc.new) plot(as.dendrogram(hc.new)) plot(optimTree.dendrogram(hc.new))