Learn R Programming

FactoMineR (version 1.02)

plot.MFA: Draw the Multiple Factor Analysis (MFA) graphs

Description

Draw the Multiple Factor Analysis (MFA) graphs.

Usage

plot.MFA(x, axes = c(1, 2), choix = "ind", ellipse = NULL, ellipse.par = NULL,
    lab.grpe = TRUE, lab.var = TRUE, lab.ind.moy = TRUE, 
    lab.par = FALSE, habillage = "ind", col.hab = NULL, 
    invisible = NULL, partial = NULL, lim.cos2.var = 0.1, 
    chrono = FALSE, xlim = NULL, ylim = NULL, 
    cex = 1, title = NULL, ...)

Arguments

x
an object of class MFA
axes
a length 2 vector specifying the components to plot
choix
a string corresponding to the graph that you want to do ("ind" for the individual or qualitative variables graph, "var" for the quantitative variables graph, "axes" for the graph of the partial axes, "group" for the groups representation)
ellipse
boolean (NULL by default), if not null, draw ellipses around the individuals, and use the results of coord.ellipse
ellipse.par
boolean (NULL by default), if not null, draw ellipses around the partial individuals, and use the results of coord.ellipse
lab.grpe
boolean, if TRUE, the label of the groups are drwan
lab.var
boolean, if TRUE, the label of the variables are drwan
lab.ind.moy
boolean, if TRUE, the label of the mean points are drwan
lab.par
boolean, if TRUE, the label of the partial points are drwan
habillage
string corresponding to the color which are used. If "ind", one color is used for each individual; if "group" the individuals are colored according to the group; else if it is the name or the position of a qualitative variable, it colors according to
col.hab
the colors to use. By default, colors are chosen
invisible
list of string; for choix ="ind", the individuals can be omit (invisible = "ind"), or supplementary individuals (invisible="ind.sup") or the centerg of gravity of the qualitative variables (invisible= "quali"); if invisible = c("ind","ind.sup"), just
partial
list of the individuals or of the center of gravity for which the partial points should be drawn (by default, partial = NULL and no partial points are drawn)
lim.cos2.var
value of the square cosinus under with the points are not drawn
chrono
boolean, if TRUE, the partial points of a same point are linked (useful when groups correspond to different moment)
xlim
range for the plotted 'x' values, defaulting to the range of the finite values of 'x'
ylim
range for the plotted 'y' values, defaulting to the range of the finite values of 'y'
cex
cf. function par in the graphics package
title
string corresponding to the title of the graph you draw (by default NULL and a title is chosen)
...
further arguments passed to or from other methods

Value

  • Returns the individuals factor map and the variables factor map.

See Also

MFA

Examples

Run this code
data(wine)
aa = MFA(wine,group=c(2,5,3,10,9,2),type=c("n",rep("s",5)),ncp=5,
    name.group=c("orig","olf","vis","olfag","gust","ens"),
    num.group.sup=c(1,6),graph=FALSE)
plot(aa, choix = "ind")
plot(aa, choix = "ind", partial="all")
plot(aa, choix = "Terroir")
plot(aa, choix = "var", habillage="group")
plot(aa, choix = "axes")

Run the code above in your browser using DataLab