I am a beginner at FactoMineR and factoextra, and I don't know how to add some labels in the result plot of my HCPC.
This is my code :
library(FactoMineR)
library(factoextra)
X<-read.table('C:/.../Bus.txt', sep='\t', header=TRUE, row.names=1)
res<-FAMD(X)
res.hcpc <- HCPC(res)
fviz_cluster(res.hcpc,show.clust.cent=FALSE,geom = "point",main = "Factor map",ggtheme = theme_minimal())
I just want to add 3 labels that are in my row.names column.
I would be very grateful if someone has the solution, I did my best to solve the problem. Thanks ! JC
I tried many functions of factoextra and ggplot2 but I failed to solve what I want.