search for: orderindex

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

2009 Apr 03
0
dendrogram rect.hclust() not working?
...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 <- dendrapply(scoreDendrogramObj, markColored...