[R] how to label individuals with FactoMiner ?
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
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
Statistician and Computer Scientist
SMCS - Institut de statistique - Université catholique de Louvain
Voie du Roman Pays, 20
tel: +32 10 47 30 50
More information about the R-help