X: a data frame or a table with n rows and p columns, i.e. a contingency table
ncp: number of dimensions kept in the results (by default 5)
row.sup: a vector indicating the indexes of the supplementary rows
col.sup: a vector indicating the indexes of the supplementary columns
quanti.sup: a vector indicating the indexes of the supplementary continuous variables
quali.sup: a vector indicating the indexes of the categorical supplementary variables
graph: boolean, if TRUE a graph is displayed
axes: a length 2 vector specifying the components to plot
row.w: an optional row weights (by default, a vector of 1 and each row has a weight equals to its margin); the weights are given only for the active rows
excl: numeric vector indicating the indexes of the "junk" columns (default is NULL). Useful for MCA with excl argument.
Returns
Returns a list including: - eig: a matrix containing all the eigenvalues, the percentage of variance and the cumulative percentage of variance
col: a list of matrices with all the results for the column variable (coordinates, square cosine, contributions, inertia)
row: a list of matrices with all the results for the row variable (coordinates, square cosine, contributions, inertia)
col.sup: a list of matrices containing all the results for the supplementary column points (coordinates, square cosine)
row.sup: a list of matrices containing all the results for the supplementary row points (coordinates, square cosine)
quanti.sup: if quanti.sup is not NULL, a matrix containing the results for the supplementary continuous variables (coordinates, square cosine)
quali.sup: if quali.sup is not NULL, a list of matrices with all the results for the supplementary categorical variables (coordinates of each categories of each variables, v.test which is a criterion with a Normal distribution, square correlation ratio)
call: a list with some statistics
Returns the row and column points factor map.
The plot may be improved using the argument autolab, modifying the size of the labels or selecting some elements thanks to the plot.CA function.
data(children)res.ca <- CA (children, row.sup =15:18, col.sup =6:8)summary(res.ca)## Ellipses for all the active elementsellipseCA(res.ca)## Ellipses around some columns onlyellipseCA(res.ca,ellipse="col",col.col.ell=c(rep("blue",2),rep("transparent",3)), invisible=c("row.sup","col.sup"))## Not run:## Graphical interfacerequire(Factoshiny)res <- Factoshiny(children)## End(Not run)