library(FactoMineR) temperature <- read.table("http://factominer.free.fr/livreV2/temperat.csv",header=TRUE, sep=";", dec=".", row.names=1) res <- PCA(temperature, ind.sup=24:35, quanti.sup=13:16, quali.sup=17) plot.PCA(res, choix="ind", habillage=17) summary(res) dimdesc(res) scale(temperature[1:23,1:16])*sqrt(22/23) cor(temperature[1:23,1:16]) concat.data <- cbind.data.frame(temperature[1:23,17],res$ind$coord) ellipse.coord <- coord.ellipse(concat.data,bary=TRUE) plot.PCA(res, habillage=17, ellipse=ellipse.coord, cex=0.8)