powered by
PCA plot of individuals colored by clusters
e_mapa_3D(pca.model, clusters, colores = NULL, ejes = c(1, 2, 3))
echarts4r plot
an object of class PCA [FactoMineR].
a vector specifying the cluster of each individual.
a vector of color for each cluster.
a numeric vector of length 3 specifying the dimensions to be plotted.
Diego Jimenez <diego.jimenez@promidat.com>
p <- discoveR:::PCA(iris[, -5], graph = FALSE) clusters <- factor(kmeans(iris[, -5], 3)$cluster) e_mapa_3D(p, clusters, c("steelblue", "pink", "forestgreen"))
Run the code above in your browser using DataLab