Plots factor map.

plot_rows(object, ...)

plot_columns(object, ...)

# S4 method for MultivariateAnalysis
plot_rows(
  object,
  axes = c(1, 2),
  active = TRUE,
  sup = TRUE,
  highlight = NULL,
  group = NULL
)

# S4 method for CA,missing
plot(
  x,
  margin = c(1, 2),
  axes = c(1, 2),
  active = TRUE,
  sup = TRUE,
  highlight = NULL,
  group = NULL
)

# S4 method for CA
plot_columns(
  object,
  axes = c(1, 2),
  active = TRUE,
  sup = TRUE,
  highlight = NULL,
  group = NULL
)

# S4 method for PCA,missing
plot(
  x,
  margin = 1,
  axes = c(1, 2),
  active = TRUE,
  sup = TRUE,
  highlight = NULL,
  group = NULL
)

# S4 method for PCA
plot_columns(
  object,
  axes = c(1, 2),
  active = TRUE,
  sup = TRUE,
  highlight = NULL,
  group = NULL
)

# S4 method for BootstrapPCA
plot_columns(
  object,
  axes = c(1, 2),
  active = TRUE,
  sup = TRUE,
  highlight = NULL,
  group = NULL
)

Arguments

object, x

A CA or PCA object.

...

Currently not used.

axes

A length-two numeric vector giving the dimensions to be plotted.

active

A logical scalar: should the active observations be plotted?

sup

A logical scalar: should the supplementary observations be plotted?

highlight

A character string giving XXX. It must be one of "coordinates", "contributions" or "cos2". Any unambiguous substring can be given. If NULL (the default), no highlighting is applied.

group

A vector of categories specifying the categorical variable from which to color the individuals (only used if highlight is NULL; see below).

margin

A length-one numeric vector giving the subscript which the data will be returned: 1 indicates individuals/rows (the default), 2 indicates variables/columns, c(1, 2) indicates rows and columns (CA).

Aesthetic

Point shapes and line types are set whether an observation is a row/individual or a column/variable and is active or supplementary.

Colors are set according to highlight and group:

  • If highlight is not NULL, the color gradient will vary according to the value of the selected parameter.

  • If group is a numeric vector, the color gradient and size will vary by the value of group.

  • If group is not a numeric vector, the colors will be mapped to the levels of group.

  • If both are NULL (the default), then the same rule as for shapes is used.

See also

Author

N. Frerebeau

Examples

## Load data data("zuni", package = "folio") ## Compute correspondence analysis X <- ca(zuni) ## Plot observations plot(X)
## Screeplot plot_variance(X)