A data.frame with the qualitative variables which should be taken in account in the multiple correspondence analysis.
scannf
A logical value indicating whether the eigenvalues bar plot should be displayed; see ade4 package (by default scannf = FALSE).
nf
If scannf=FALSE, an integer indicating the number of kept axes; see ade4 package (by default nf = 2).
xax
A numeric giving the number of the first axis to plot (by default xax = 1).
yax
A numeric giving the number of the second axis to plot (by default yax = 2).
clab.row
A character size for the rows (by default clab.row = FALSE).
clab.col
A character size for the columns (by default clab.col = 1).
permute
If FALSE, the rows are plotted by points and the columns by arrows. If TRUE it is the opposite (by default permute = FALSE).
posieig
If "top" the eigenvalues bar plot is upside, if "bottom" it is downside, if "none" no plot. "topleft" and "bottomleft" are also possible (by default posieig = "top").
sub
A string of characters to be inserted as legend (by default sub = NULL).
graphstyle
Three kinds of graph can be selected. If graphstyle = "unique", all variables will be plotted on the same graph. If graphstyle = "multiple a" each variable will be plotted in different graphs (cf. graphrow and graphcol) with inertia ellipse. If graphstyle = "multiple b" each variable will be plotted in different graphs (cf. graphrow and graphcol) with convex hulls.
graphrow
The number of row for multiple graph. If one deal with 6 variables it is recommended to write graphrow = 2 and graphcol = 3.
graphcol
The number of column for multiple graph. If one deal with 6 variables it is recommended to write graphrow = 2 and graphcol = 3.
cpoint
A numeric for the size of the points.
clabel
A numeric for the size of the labels.
csub
A numeric for the size of the name of the variable written at the bottom of each chart.
Note
If you use this function please cite also ade4-package.
Author(s)
Borel A., Pouydebat E., Reghem E. <antony.borel@gmail.com>
based on functions from Daniel Chessel, Anne-Beatrice Dufour and Stephane Dray, with contributions from Thibaut Jombart, Jean R. Lobry, Sebastien Ollier, Sandrine Pavoine and Jean Thioulouse. Package ade4: Analysis of Ecological Data : Exploratory and Euclidean methods in Environmental sciences.
References
Daniel Chessel, Anne-Beatrice Dufour and Stephane Dray, with contributions from Thibaut Jombart, Jean R. Lobry, Sebastien Ollier, Sandrine Pavoine and Jean Thioulouse. Package ade4: Analysis of Ecological Data : Exploratory and Euclidean methods in Environmental sciences.
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(Laterality)
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/Laterality/visAFCM.Rd_%03d_medium.png", width=480, height=480)
> ### Name: visAFCM
> ### Title: visAFCM: this function plots multiple correspondence analysis
> ### graphs based on ade4 package functions.
> ### Aliases: visAFCM
> ### Keywords: correspondence AFCM MCA laterality manual preference
>
> ### ** Examples
>
> data(laterdata)
> ## "unique" graph:
> visAFCM(laterdata)
NULL
>
> ## "multiple a" graph:
> visAFCM(laterdata, xax = 1, yax = 2, clab.row = FALSE, clab.col = 1,
+ permute = FALSE, posieig = "top", sub = NULL, graphstyle = "multiple a",
+ graphrow = 2, graphcol = 3, cpoint=3)
NULL
>
> ## "multiple b" graph:
> visAFCM(laterdata, xax = 1, yax = 2, clab.row = FALSE, clab.col = 1,
+ permute = FALSE, posieig = "top", sub = NULL, graphstyle = "multiple b",
+ graphrow = 2, graphcol = 3)
>
>
>
>
>
> dev.off()
null device
1
>