Displaying 1 result from an estimated 1 matches for "newenglandstates".
2005 Oct 23
1
Coloring leaves, twigs and labels in plot.dendrogram()
...enter, leaflab = leaflab,
dLeaf = dLeaf, nodePar = nodePar, edgePar = edgePar,
horiz = horiz, leafcounter = 1, ...)
} # End of function
############################## 80 Characters Wide
##############################
## Examples
hc <- hclust(dist(USArrests), "ave")
NewEnglandStates <- rep(0, 50)
NewEnglandStates[c(7, 19, 21, 29, 39, 45)] <- 1
my.dend.plot(as.dendrogram(hc, hang = 0.02),
twig.col = (NewEnglandStates + 1)[hc$order],
lab.col = (NewEnglandStates + 1)[hc$order])
my.dend.plot(as.dendrogram(hc), twig.col = (NewEnglandStates +
1)[hc$order],...