barplot_contrib {GDAtools} | R Documentation |
Bar plot of contributions
Description
From MCA results, plots contributions to the axes.
Usage
barplot_contrib(resmca, dim = 1, which = "var",
sort = FALSE, col = "tomato4", repel = FALSE)
Arguments
resmca |
object of class |
dim |
the dimension to use. Default is 1. |
which |
If |
sort |
logical. If |
col |
color of the bars |
repel |
logical. If |
Details
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.
Value
a ggplot2
object
Author(s)
Nicolas Robette
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
Examples
# specific MCA on the Music example data set
data(Music)
junk <- c("FrenchPop.NA", "Rap.NA", "Rock.NA", "Jazz.NA", "Classical.NA")
mca <- speMCA(Music[,1:5], excl = junk)
# contributions of categories
barplot_contrib(mca)