hclustView {MAGeCKFlute} | R Documentation |
Cluster and view cluster tree
hclustView( d, method = "average", label_cols = NULL, bar_cols = NULL, main = NA, xlab = NA, horiz = TRUE, ... )
d |
A dissimilarity structure as produced by dist. |
method |
The agglomeration method to be used. This should be (an unambiguous abbreviation of) one of "ward.D", "ward.D2", "single", "complete", "average" (= UPGMA), "mcquitty" (= WPGMA), "median" (= WPGMC) or "centroid" (= UPGMC). |
label_cols |
A vector to be used as label's colors for the dendrogram. |
bar_cols |
Either a vector or a matrix, which will be plotted as a colored bar. |
main |
As in 'plot'. |
xlab |
As in 'plot'. |
horiz |
Logical indicating if the dendrogram should be drawn horizontally or not. |
... |
Arguments to be passed to methods, such as graphical parameters (see par). |
Plot figure on open device.
Wubing Zhang
label_cols = rownames(USArrests) hclustView(dist(USArrests), label_cols=label_cols, bar_cols=label_cols)