Adds supplementary individuals to a MCA graph

Share:

Description

Adds supplementary individuals to a MCA graph of the cloud of the individuals.

Usage

1
textindsup(resmca, supdata, axes = c(1, 2), col = "darkred")

Arguments

resmca

object of class 'MCA', 'speMCA', or 'csMCA'

supdata

data frame with the supplementary individuals. It must have the same factors as the data frame used as input for the initial MCA.

axes

numeric vector of length 2, specifying the dimensions (axes) to plot (default is c(1,2))

col

color for the labels of the categories (default is 'darkred')

Author(s)

Nicolas Robette

See Also

indsup, plot.speMCA, plot.csMCA

Examples

1
2
3
4
5
6
7
8
9
## Performs a specific MCA on 'Music' example data set
## ignoring every 'NA' (i.e. 'not available') categories,
## plots the cloud of individuals,
## and then adds supplementary individuals.
data(Music)
getindexcat(Music)
mca <- speMCA(Music[3:nrow(Music),1:5],excl=c(3,6,9,12,15))
plot(mca,type='i')
textindsup(mca,Music[1:2,1:5])

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.