# NOT RUN {
## Performs a specific MCA on 'Taste' example data set
## ignoring every 'NA' (i.e. 'not available') categories,
## draws the cloud of categories
## and adds a density layer for Age=50+.
data(Taste)
getindexcat(Taste[,1:11])
mca <- speMCA(Taste[,1:11],excl=c(3,6,9,12,15,18,21,24,27,30,33))
p <- ggcloud_indiv(mca, col='lightgrey')
# density layer with contours
ggadd_density(p, mca, var=Taste$Age, cat="50+")
# density layer with areas
ggadd_density(p, mca, var=Taste$Age, cat="50+", density="area")
# }
Run the code above in your browser using DataLab