View source: R/mod_cluster_utils.R
e_horiz | R Documentation |
Horizontal representation for centers of clusters.
e_horiz(centros, colores = NULL)
centros |
a data.frame object with the centers of the clusters. |
colores |
a vector of color for each cluster. |
echarts4r plot
Diego Jimenez <diego.jimenez@promidat.com>
clusters <- factor(kmeans(iris[, -5], 3)$cluster) c <- calc.centros(iris[, -5], clusters) e_horiz(c$real, c("steelblue", "pink", "forestgreen"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.