autoplot_ca: Automatic ggplot for a Correspondence Analysis

Usage Arguments Value Author(s) See Also

Usage

1
2
3
4
5
6
7
## S3 method for class 'correspondence'
autoplot(object, data = NULL, PC = c(1, 2),
  mapping = aes(), ...)

## S3 method for class 'CA'
autoplot(object, data = NULL, PC = c(1, 2), mapping = aes(),
  ...)

Arguments

object

an object resulting from a CA

data

the original dataset, use to compute the contributions of rows and columns to the principal components. When NULL, the default, data will be extracted from the CA object when it contains it

PC

the principal components to extract; two is usual for plotting

mapping

a call to aes() specifying additional mappings between variables and plot aesthetics; by default, positions in x and y are mapped to the scores on the principal components and colour is mapped to the nature of the data (active or supplementary) when relevant. See fortify_ca for a list of the other mappable variables returned by the fortify methods

...

passed to the various geoms; can be used to set further aesthetics

Value

A ggplot2 object defining the plot

Author(s)

Jean-Olivier Irisson irisson@normalesup.org

See Also

fortify_ca for the function which actually extracts the data from the CA object.


jiho/autoplot documentation built on May 19, 2019, 9:29 a.m.