hclustplot(hc, k = NULL, h = NULL, colors = NULL, labels = NULL, fillbox = FALSE, heights = c(1, .3), mar = c(1, 1, 0, 1), ...)
hclust
. cutree
. cutree
. At least one of k
or h must be specified. layout
. plot.dendrogram
, mtext
, and par
. Note that
certain arguments will be ignored. Draw a standard dendrogram with clustering annotation in the marginal regions and colored labels.
This function adds extended visualization of cluster membership to a
standard dendrogram. If k or h is provided a call to
cutree
will provide cluster membership
information. Alternatively a vector of colors or cluster membership
information can be provided through argument colors.
See examples for further details on usage.
Argument horiz=TRUE currently not supported.
Grant, B.J. et al. (2006) Bioinformatics 22, 2695--2696.
# Redundant testing excluded attach(transducin) ##- perform RMSD clustering rd <- rmsd(pdbs, fit=TRUE)Warning message: No indices provided, using the 305 non NA positionshc <- hclust(as.dist(rd)) ##- draw dendrogram hclustplot(hc, k=3) ##- draw dendrogram with manual clustering annotation #hclustplot(hc, colors=annotation[, "color"], labels=pdbs$id) detach(transducin)