barplot_contrib.Rd
From MCA results, plots contributions to the axes.
barplot_contrib(resmca, dim = 1, which = "var",
sort = FALSE, col = "tomato4", repel = FALSE)
object of class MCA
, speMCA
, csMCA
, PCA
or CA
the dimension to use. Default is 1.
If resmca
is of class MCA
, speMCA
, csMCA
or PCA
, should be "var"
to plot contributions of variables or "ind"
to plot contributions of individuals. If resmca
is of class CA
, should be "row"
to plot contributions of rows or "col"
to plot contributions of columns. Default is "var"
.
logical. If TRUE
, bars are sorted by decreasing VIPs. Default is FALSE
.
color of the bars
logical. If TRUE
, the names of the variables are repelled with geom_text_repel
. Default is FALSE
The contributions are multiplied by the sign of the coordinates, so that the plot shows on which side of the axis they contribute, which makes the interpretation easier.
a ggplot2
object
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).