data(DataInd) # categorized data set
data <- DataInd[,2:ncol(DataInd)]
rownames(data) <- as.character(t(DataInd[1:nrow(DataInd),1]))
group.names = c("Group 1", "Group 2", "Group 3", "Group 4")
mf <- MFA(data, c(16,16,16,16), c(rep("f",4)), group.names)
print("Principal components variances:"); round(mf$mtxA,2)
print("Matrix of the Partial Inertia / Score of the Variables:"); round(mf$mtxEV,2)
tit <- c("Scree-plot","Individuals","Individuals / Types coffees","Inercias Groups")
Plot.MFA(mf, titles = tit, xlabel = NA, ylabel = NA,
posleg = 2, boxleg = FALSE, color = TRUE,
namarr = FALSE, linlab = NA, casc = FALSE) # plotting several graphs on the screen
Run the code above in your browser using DataLab