View source: R/mod_cluster_utils.R
| e_vert | R Documentation | 
Vertical representation for centers of clusters.
e_vert(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_vert(c$real, c("steelblue", "pink", "forestgreen"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.