Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

cacoord

Extracting coordinates from ca and mjca objects.


Description

Extracting standard and principal coordinates as well as various row and column scaling configurations for visual display from ca and mjca objects.

Usage

cacoord(obj, 
               type = c("standard", "principal", 
                        "symmetric", "rowprincipal", "colprincipal", "symbiplot", 
                        "rowgab", "colgab", "rowgreen", "colgreen"), 
               dim  = NA,
               rows = NA,
               cols = NA,
               ...)

Arguments

obj

A ca or mjca object returned by ca or mjca.

type

The type of coordinates to extract ("standard" or "principal"). The remaining options ("symmetric", ..., "colgreen") return the corresponding row/column coordinate configuration for the map scaling options described in plot.ca where the corresponding argument is map.

dim

The dimensions to return. If NA, all available dimensions are returned.

rows

Logical indicating whether to return the row coordinates (see below for details).

cols

Logical indicating whether to return the column coordinates (see below for details).

...

Further arguments (ignored).

Details

The function cacoord returns the standard or principal coordinates of a CA or MCA solution. Additionally, row and column scaling configurations for plotting methods can be computed (see plot.ca for details).
Note that by default row and column coordinates are computed (i.e. for (rows=NA&cols=NA)|(rows=TRUE&cols=TRUE)). Using rows=TRUE (and cols=NA or cols=FALSE) returns a matrix with the row coordinates, and for cols=TRUE (and cols=NA or cols=FALSE) a matrix with the column coordinates is returned.

Value

A list with the slots rows (row coordinates) and columns (column coordinates). When computing only row or only column coordinates, a matrix (with the corresponding row or column coordinates) is returned.

See Also


ca

Simple, Multiple and Joint Correspondence Analysis

v0.71.1
GPL
Authors
Michael Greenacre [aut], Oleg Nenadic [aut, cre], Michael Friendly [ctb]
Initial release
2018-10-10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.