color_hclust | R Documentation |
Determines colors for x
based on stats::hclust. x
is normalized according normalize.
color_hclust( x, normalize = 1, ncol = 2, colpal = grDevices::hcl.colors, dist = "euclidean", na.action = stats::na.pass, ... )
x |
a numeric matrix, data frame or "dist" object. |
normalize |
integer: normalization method (default:
|
ncol |
integer: maximal number colors |
colpal |
color palette: a function which generates "ncol" colors with "colpal(ncol)" (default: grDevices::hcl.colors) |
dist |
the distance measure to be used. This must be one of "euclidean", "maximum", "manhattan", "canberra" or "binary"(default: |
na.action |
a function which indicates what should happen when the data contain NAs (default: |
... |
further parameters given to stats::hclust |
a color vector
color_hclust(iris[,-5], ncol=6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.