e_vert {discoveR} | 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"))