Learn R Programming

discoveR (version 3.1.2)

e_vert: Vertical representation for centers of clusters.

Description

Vertical representation for centers of clusters.

Usage

e_vert(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_vert(c$real, c("steelblue", "pink", "forestgreen"))

Run the code above in your browser using DataLab