Learn R Programming

discoveR (version 3.1.2)

e_horiz: Horizontal representation for centers of clusters.

Description

Horizontal representation for centers of clusters.

Usage

e_horiz(centros, colores = NULL)

Value

echarts4r plot

Arguments

centros

a data.frame object with the centers of the clusters.

colores

a vector of color for each cluster.

Author

Diego Jimenez <diego.jimenez@promidat.com>

Examples

Run this code
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