| ClusterCols | R Documentation |
Internal helper applied via dendrapply that colours the
leaves and edges of a dendrogram according to the cluster a leaf belongs to,
or to a specific selection of objects. Used by ClusterPlot.
ClusterCols(x, Data, nrclusters = NULL, cols = NULL, colorComps = NULL)
x |
A node of a dendrogram (passed by |
Data |
The clustering result (an |
nrclusters |
Optional. The number of clusters to cut the dendrogram in. Default is NULL. |
cols |
The colours for the clusters if nrclusters is specified. Default is NULL. |
colorComps |
Optional. A character vector of objects to highlight in red. Default is NULL. |
The dendrogram node x with coloured nodePar and edgePar attributes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.