I carry out a PCA for the data seta dataset data(decathlon) from the package FactoMineR like:
install.packages("FactoMineR")
library(FactoMineR)
install.packages("devtools")
library("devtools")
install_github("kassambara/factoextra")
library("factoextra")
install.packages("corrplot")
library("corrplot")
data("decathlon")
head( decathlon[c("Shot.put", "Shot.put", )])
options(ggrepel.max.overlaps = Inf)
res.pca <- PCA( decathlon[c("Shot.put", "Shot.put", )], scale.unit=TRUE, ncp=15, graph=TRUE)
and I get a PCA graph of variables.
How can I select an appropriate number of components graphically?
