View source: R/mod_cluster_utils.R
e_cat | R Documentation |
Barplot for categoric variable by clusters.
e_cat(clusters, var, colores = NULL, escalar = T)
clusters |
a vector specifying the cluster of each individual. |
var |
a factor column of a data.frame. |
colores |
a vector of color for each cluster. |
escalar |
a boolean value specifying if use percentage or real values. |
echarts4r plot
Diego Jimenez <diego.jimenez@promidat.com>
clusters <- factor(kmeans(iris[, -5], 3)$cluster) e_cat(clusters, iris[, 5], colores = c("steelblue", "pink", "forestgreen"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.