Learn R Programming

GDAtools (version 1.7)

flip.mca: Flips the coordinates of a MCA

Description

Flips the coordinates of the individuals and the categories on one or more dimensions of a MCA.

Usage

flip.mca(resmca, dim=1)

Arguments

resmca

object of class MCA, speMCA, csMCA, stMCA or multiMCA

dim

the dimensions for which the coordinates are flipped. By default, only the 1st dimension is flipped

Value

Returns an object of the same class as resmca

References

Le Roux B. and Rouanet H., Multiple Correspondence Analysis, SAGE, Series: Quantitative Applications in the Social Sciences, Volume 163, CA:Thousand Oaks (2010).

Le Roux B. and Rouanet H., Geometric Data Analysis: From Correspondence Analysis to Stuctured Data Analysis, Kluwer Academic Publishers, Dordrecht (June 2004).

See Also

MCA, speMCA, csMCA

Examples

Run this code
# NOT RUN {
## Flips dimensions 1 and 2
## of the MCA of 'Music' example data set
data(Music)
mca <- speMCA(Music[,1:5])
ggcloud_variables(mca, legend="none")
flipped_mca <- flip.mca(mca, dim=c(1,2))
ggcloud_variables(flipped_mca, legend="none")
# }

Run the code above in your browser using DataLab