Plot eigenvalues or variances histogram.

plot_variance(object, ...)

# S4 method for MultivariateAnalysis
plot_variance(
  object,
  variance = TRUE,
  cumulative = TRUE,
  fill = "grey30",
  border = "grey10",
  color = "red"
)

Arguments

object

A CA or PCA object.

...

Currently not used.

variance

A logical scalar: should the percentages of variance be plotted instead of the eigenvalues?

cumulative

A logical scalar: should the cumulative percentages of variance be plotted?

fill, border

A character string specifying the bars infilling and border colors.

color

A character string specifying the line color.

Author

N. Frerebeau

Examples

## Load data
data("zuni", package = "folio")

## Compute correspondence analysis
X <- ca(zuni)

## Plot observations
plot(X)


## Screeplot
plot_variance(X)