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 layout
.plot.dendrogram
, mtext
, and par
. Note that
certain arguments will be ignored.cutree
will provide cluster membership
information. Alternatively a vector of colors or cluster membership
information can be provided through argument See examples for further details on usage.
plot.hclust
, plot.dendrogram
,
hclust
, cutree
.attach(transducin)
##- perform clustering
rd <- rmsd(pdbs, fit=TRUE)
hc <- hclust(as.dist(rd))
##- draw dendrogram
hclustplot(hc, k=3)
##- draw dendrogram with manual clustering annotation
hclustplot(hc, colors=annotation[, "color"], labels=pdbs$id)
Run the code above in your browser using DataLab