flip_PCaxes: Flips PCA axes

View source: R/mult-PCA.R

flip_PCaxesR Documentation

Flips PCA axes

Description

Simply multiply by -1, corresponding scores and rotation vectors for PCA objects. PC orientation being arbitrary, this may help to have a better display.

Usage

flip_PCaxes(x, axs)

Arguments

x

a PCA object

axs

numeric which PC(s) to flip

Examples

bp <- bot %>% efourier(6) %>% PCA
bp %>% plot
bp %>% flip_PCaxes(1) %>% plot()

vbonhomme/Momocs documentation built on Nov. 13, 2023, 8:54 p.m.