Combines "laterAFCM" and "visAFCM" functions. It calculates disjunctive table, Burt table and contributions for MCA and then plots multiple correspondence analysis graphs.
lvisAFCM(data, scannf=FALSE, nf=2, xax = 1, yax = 2, clab.row = FALSE, clab.col = 1,
permute = FALSE, posieig = "top", sub = NULL,
graphstyle = "unique", graphrow = 1, graphcol = 3, cpoint = 1,
clabel = 2, csub = 2, saveDatadisj = FALSE,
fileDatadisj = "Datadisj.csv", saveSumcolDatadisj = FALSE,
fileSumcolDatadisj = "SumcolDatadisj.csv", saveDataburt = FALSE,
fileDataburt = "Databurt.csv", saveContributions = FALSE,
fileContributions = "Contributions.csv")
The function returns results of class "list".
A data.frame with the qualitative variables which should be taken in account in the multiple correspondence analysis.
A logical value indicating whether the eigenvalues bar plot should be displayed; see ade4 package (by default scannf = FALSE).
If scannf=FALSE, an integer indicating the number of kept axes; see ade4 package (by default nf = 2).
A numeric giving the number of the first axis to plot (by default xax = 1).
A numeric giving the number of the second axis to plot (by default yax = 2).
A character size for the rows (by default clab.row = FALSE).
A character size for the columns (by default clab.col = 1).
If FALSE, the rows are plotted by points and the columns by arrows. If TRUE it is the opposite (by default permute = FALSE).
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").
A string of characters to be inserted as legend (by default sub = NULL).
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.
The number of row for multiple graph. If one deal with 6 variables it is recommended to write graphrow = 2 and graphcol = 3.
The number of column for multiple graph. If one deal with 6 variables it is recommended to write graphrow = 2 and graphcol = 3.
A numeric for the size of the points.
A numeric for the size of the labels.
A numeric for the size of the name of the variable written at the bottom of each chart.
This arguments permits to save directly the results of the disjunctive table in a .csv file in the workspace of R. If savetable = "csv" there will be "." for the decimal point and a "," for the separator. If savetable = "csv2" there will be "," for the decimal point and a ";" for the separator. (by default savetable = FALSE)
This argument will work if savetable = "csv" or "csv2". It gives the name of the csv file saved (by default file = "Datadisj.csv")
This arguments permits to save directly the results of the sum of the column of the disjunctive table in a .csv file in the workspace of R. If savetable = "csv" there will be "." for the decimal point and a "," for the separator. If savetable = "csv2" there will be "," for the decimal point and a ";" for the separator. (by default savetable = FALSE)
This argument will work if savetable = "csv" or "csv2". It gives the name of the csv file saved (by default file = "SumcolDatadisj.csv")
This arguments permits to save directly the results of the Burt table in a .csv file in the workspace of R. If savetable = "csv" there will be "." for the decimal point and a "," for the separator. If savetable = "csv2" there will be "," for the decimal point and a ";" for the separator. (by default savetable = FALSE)
This argument will work if savetable = "csv" or "csv2". It gives the name of the csv file saved (by default file = "Databurt.csv")
This arguments permits to save directly the results of the contributions table in a .csv file in the workspace of R. If savetable = "csv" there will be "." for the decimal point and a "," for the separator. If savetable = "csv2" there will be "," for the decimal point and a ";" for the separator. (by default savetable = FALSE)
This argument will work if savetable = "csv" or "csv2". It gives the name of the csv file saved (by default file = "Contributions.csv")
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.
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.
ade4
,inertia.dudi
, acm.disjonctif
, acm.burt
, dudi.acm
, scatter.dudi
, s.class
, s.chull
data(laterdata)
## Without saving:
## "unique" graph:
lvisAFCM(laterdata)
## "multiple a" graph:
lvisAFCM(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)
## "multiple b" graph:
lvisAFCM(laterdata, xax = 1, yax = 2, clab.row = FALSE,
clab.col = 1,permute = FALSE, posieig = "top", sub = NULL,
graphstyle = "multiple b", graphrow = 2, graphcol = 3)
Run the code above in your browser using DataLab