powered by
Modifiction of plclust for plotting hclust objects in *in colour*!
myplclust( hclust, labels = hclust$labels, lab.col = rep(1, length(hclust$labels)), hang = 0.1, xlab = "", sub = "", ... )
hclust object
a character vector of labels of the leaves of the tree
colour for the labels; NA=default device foreground colour
as in hclust & plclust
hclust
plclust
title for x-axis (defaults to no title)
subtitle (defualts to no subtitle)
further arguments passed to plot
plot
Eva KF Chan
data(iris) hc <- hclust( dist(iris[,1:4]) ) myplclust(hc, labels=iris$Species,lab.col=as.numeric(iris$Species))
Run the code above in your browser using DataLab