e_horiz {discoveR} | R Documentation |
Horizontal representation for centers of clusters.
Description
Horizontal representation for centers of clusters.
Usage
e_horiz(centros, colores = NULL)
Arguments
centros |
a data.frame object with the centers of the clusters. |
colores |
a vector of color for each cluster. |
Value
echarts4r plot
Author(s)
Diego Jimenez <diego.jimenez@promidat.com>
Examples
clusters <- factor(kmeans(iris[, -5], 3)$cluster)
c <- calc.centros(iris[, -5], clusters)
e_horiz(c$real, c("steelblue", "pink", "forestgreen"))
[Package discoveR version 3.1.2 Index]