You are on page 1of 1

library(FactoMineR)

tab1<-matrix(c(10,20,30,10,30,20,20,10,30,20,30,10),ncol=3,byrow=TRUE)
rownames(tab1)<-c("marron","noisette","vert","bleu")
colnames(tab1)<-c("brun","chatain","roux","blond")
calcule frequence:
> freqtab1<-tab1/n
> round(freqtab1,digits=4)

> profil<-function(x){x/sum(x)*100}
> prof.ligne<-t(apply(tab1,1,profil))
> print(round(prof.ligne,1)/100)

>tab1,ncp=2,graph=FALSE)
,cex=0.75)
> plot(tab1.afc$eig)
> print(tab1.afc$eig)

You might also like