Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upMinor question about Factoextra package #13
Comments
|
Thank you for reporting this bug. It's now fixed.
if(!require(devtools)) install.packages("devtools")
devtools::install_github("kassambara/factoextra")
# Computing MCA
library("FactoMineR")
data(poison)
res.mca <- MCA(poison[1:55, 5:15], graph=FALSE)
# Computing HCPC
res.hcpc <- HCPC(res.mca, graph = FALSE)
# Default plot
plot(res.hcpc, choice = "map")
library(factoextra)
fviz_cluster(res.hcpc, repel = TRUE)Best, |


First of all, congratulations for this useful package for visualizing clusters
I'm applying it for visualizing an object HCPC (a cluster obtained by HCPC method on an MCA analysis of plant categorical atributes attributes (FactomineR package)) in the way you explain and I have an error message when I try to apply the command fviz_cluster (factoextra package) to the HCPC object that I obtain from MCA (FactomineR package). The error message says:
Error in colMeans(x, na.rm = TRUE) : 'x' must be numeric
When I apply the fviz_cluster (factoextra package) to another HCPC object obtained from PCA (FactomineR package) I have no problems.
What can be the solution for this problem?
Thank you so much
Best regards
Alejandro Juárez-Escario