plot.MFApartial: Plot an interactive Multiple Factor Analysis (MFA) graph

Description Usage Arguments Value Author(s) See Also Examples

Description

Draw an interactive Multiple Factor Analysis (MFA) graphs.

Usage

1
2
3
4
5
plotMFApartial(x, axes = c(1, 2), 
    lab.ind = TRUE, lab.par = FALSE, habillage = "group",
    chrono = FALSE, col.hab = NULL, invisible = NULL, 
    draw.partial = NULL, xlim = NULL, ylim = NULL, 
    cex = 1, title = NULL, palette = NULL, ...)

Arguments

x

an object of class MFA

axes

a length 2 vector specifying the components to plot

lab.ind

boolean, if TRUE, the label of the mean points are drawn

lab.par

boolean, if TRUE, the label of the partial points are drawn

habillage

string corresponding to the color which are used. If "group", one color is used for each group of variables; if "quali" the individuals are colored according to one categorical variable; if "group" the individuals are colored according to the group

chrono

boolean, if TRUE, the partial points of a same point are linked (useful when groups correspond to different moment)

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 categorical variables (invisible= "quali"); if invisible = c("ind","ind.sup"), just the centers of gravity are drawn

draw.partial

data frame of a boolean variable for all the individuals and all the centers of gravity and with for which the partial points should be drawn (by default, NULL and no partial points are drawn)

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)

palette

the color palette used to draw the points. By default colors are chosen. If you want to define the colors : palette=palette(c("black","red","blue")); or you can use: palette=palette(rainbow(30)), or in black and white for example: palette=palette(gray(seq(0,.9,len=25)))

...

further arguments passed to or from other methods

Value

Draw a graph with the individuals and the centers of gravity. The graph is interactive and clicking on a point will draw the partial points, if you click on a point for which the partial points are yet drawn, the partial points are deleted. To stop the interactive plot, click on the title (or in the top of the graph).
Return the names of the points for which the partial points are drawn.

Author(s)

Francois Husson husson@agrocampus-ouest.fr

See Also

MFA, plot.MFA

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
data(wine)
res.wine = 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)
liste = plotMFApartial(res.wine)
plot(res.wine, partial = liste)

## End(Not run)

Example output



FactoMineR documentation built on Jan. 8, 2021, 2:18 a.m.