reflectaxes {cabootcrs}R Documentation

Reflect coordinates for chosen axes

Description

reflectaxes reflects the principal and standard coordinates of the axes chosen, and the appropriate covariances where needed

Usage

reflectaxes(x, axes = c(1, 2))

Arguments

x

An object of class cabootcrsresults

axes

A list or vector containing the numbers of the axes to be reflected

Details

This may be useful when comparing results between different data sets, or from different packages

Value

An object of class cabootcrsresults

See Also

cabootcrs-package, cabootcrs, reordercategories, cabootcrsresults

Examples

results <- cabootcrs(DreamData)
resultsreflectfirstaxis <- reflectaxes(results, 1)
summaryca(resultsreflectfirstaxis)
plotca(resultsreflectfirstaxis)

## Not run: 

# Often needed when comparing results between different packages,
# or same package on different machines,
# or to allow ellipses from this package to be added to plots from other packages

library(ca)
cad3 <- mjca(DreamData223by3)
bd3 <- cabootcrs(DreamData223by3, catype="mca")
summary(cad3)
bd3reflect1 <- reflectaxes(bd3,1)
summaryca(bd3reflect1)


## End(Not run)


[Package cabootcrs version 2.1.0 Index]