Learn R Programming

cabootcrs (version 2.1.0)

reflectaxes: 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

Value

An object of class '>cabootcrsresults

Details

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

See Also

cabootcrs-package, cabootcrs, reordercategories, '>cabootcrsresults

Examples

Run this code
# NOT RUN {
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)

# }
# NOT RUN {
# }

Run the code above in your browser using DataLab