search for: scoreclusterobj

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

2009 Apr 03
0
dendrogram rect.hclust() not working?
I have tried 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[orderInd...