Description Usage Arguments Value Author(s) Examples
Cluster and view cluster tree
1 2 3 4 5 6 7 8 9 10 |
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
1 2 | label_cols = rownames(USArrests)
hclustView(dist(USArrests), label_cols=label_cols, bar_cols=label_cols)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.