Learn R Programming

soc.ca (version 0.8.0)

invert: Invert the direction of coordinates

Description

Invert one or more axes of a correspondence analysis. The principal coordinates of the analysis are multiplied by -1.

Usage

invert(x, dim = 1)

Arguments

x

is a soc.ca object

dim

is the dimensions to be inverted

Value

a soc.ca object with inverted coordinates on the specified dimensions

Details

This is a convieniency function as you would have to modify coord.mod, coord.ind and coord.sup in the soc.ca object.

See Also

soc.mca, add.to.label

Examples

Run this code
# NOT RUN {
example(soc.ca)
inverted.result  <- invert(result, 1:2)
result$coord.ind[1, 1:2]
inverted.result$coord.ind[1, 1:2]
# }

Run the code above in your browser using DataLab