[R] how to label individuals with FactoMiner ?

Alain Guillet alain.guillet at uclouvain.be
Wed Feb 24 12:52:01 CET 2010


The label you want to see on the factorial map should be the row names 
so change first the row names and then do your analysis using 
FactoMineR. Then apply the code hereunder replacing res by your PCA object.

plot.PCA(res, axes=c(1, 2), choix="ind", habillage="ind", 
col.ind="black", col.ind.sup="blue", col.quali="magenta", label=c("ind", 
"ind.sup", "quali"),  title="")


On 24-Feb-10 12:33, Robert U wrote:
> Dear all,
> i'm trying to label specific individuals (supplementary ones) after a PCA with the FactoMiner package. There is not much details (possibilities?) in the R-help of the plot.pca function. There is indeed a "label" parameter but i could only manage to label the supplementary individuals with there "row.names" (i.e. label="indiv.sup") and not with the specific names i would like them to display (gathered in a data-frame column for example, characters or numeric...).
> I saw that i might resolve my problem with the ade4 package (s.plot function or something like that) but i would like to stick to factominer, if there is a way to manage this label issue... Did anyone deal with that before ?
> Thanks for your help,
> with regards.
> 	[[alternative HTML version deleted]]
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

Alain Guillet
Statistician and Computer Scientist

SMCS - Institut de statistique - Université catholique de Louvain
Bureau c.316
Voie du Roman Pays, 20
B-1348 Louvain-la-Neuve

tel: +32 10 47 30 50

More information about the R-help mailing list