autoplot.MCA: 'ggplot' output for MCA objects.

Description Usage Arguments Details Value See Also Examples

View source: R/autoplot.MCA.R

Description

ggplot output for MCA objects.

Usage

1
2
3
4
5
6
## S3 method for class 'MCA'
autoplot(object, axes = c(1, 2), mod = TRUE,
  quali.sup = TRUE, ind = FALSE, filtre = 0, axis.plot = TRUE,
  alpha = 1, point.type = "petit", ellipses = NA, coloriage = NA,
  taille = FALSE, dl.method = "smart.grid", labels = "all",
  label.size = 5)

Arguments

object

a MCA-class object.

axes

a 2-length vector. Selects which dimensions should be displayed.

mod

whether the variables modalities should be represented.

quali.sup

whether the supplementary (illustrative) variables' modalities should be represented.

ind

whether the individuals should be represented.

filtre

indicates the value of the contribution above which modalities should be represented. If it takes the value "moyenne", then the mean of the contributions is used.

axis.plot

whether the axes should be plotted.

alpha

the alpha parameter for the individual points.

point.type

controls the size of individual points. Can be 'petit' (small) or 'gros' (big).

ellipses

a variable name. Ellipses are drawn for each modality of this variable.

coloriage

a variable name. Individual points are colored acoordingly to the modalities of this variable. In that case, the variables' modalities are drawn in black.

taille

whether the individual (resp. modalities) points' size should be proportional to their weight (resp. contribution).

dl.method

the method to be used for direct labeling. See http://directlabels.r-forge.r-project.org/docs/index.html. If equals to FALSE, then normal text labeling.

labels

which points should be labelled? Can be 'all', 'var', or 'sup'.

label.size

size of the labels. Defaults to 5.

Details

This method takes an object of class MCA, and produces a ggplot2 graphical representation of a factorial plan, with several options.

Value

a ggplot2 object, which is also printed.

See Also

fortify.MCA

Examples

1
2
3
4
library(FactoMineR)
data(tea)
tea.mca <- MCA(tea[,1:18], graph=FALSE)
autoplot(tea.mca)

joelgombin/ggplot.acm documentation built on May 19, 2019, 3 p.m.