powered by
Horizontal representation for centers of clusters.
e_horiz(centros, colores = NULL)
echarts4r plot
a data.frame object with the centers of the clusters.
a vector of color for each cluster.
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"))
Run the code above in your browser using DataLab