data(DataCoffee) # categorized data set
data <- DataCoffee[,2:ncol(DataCoffee)]
rownames(data) <- as.character(t(DataCoffee[1:nrow(DataCoffee),1]))
group.names = c("Coffee A", "Coffee B", "Coffee C", "Coffee D")
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