search for: orderedlabel

Displaying 1 result from an estimated 1 matches for "orderedlabel".

Did you mean: orderedlabels
2009 Apr 03
0
dendrogram rect.hclust() not working?
...to use rect.hclust() to draw a rectangle around a set of leaves, but am running into trouble. The rect.hclust() is drawing two rects instead of one, and of the wrong size: -------------------- scoreClusterObj <- hclust(scoreDistanceObj, method=clustMethod) order <- scoreClusterObj$order orderedLabels <- rep(0, length(order)) for (orderIndex in 1:length(order)) { # this puts a "name" to the permutation of leaves, done by hclust() orderedLabels[orderIndex] <- classes[order[orderIndex]] } scoreDendrogramObj <- as.dendrogram(scoreClusterObj) coloredLeafScoreDendrogramObj <-...