selectPCs: Select principal components using Broken Stick criterion

Description Usage Arguments Value Examples

View source: R/selectPCs.R

Description

Selects principal components according to Broken Stick Model (MacArthur 1957). Adapted from function "evplot" by Francois Gillet.

Usage

1
selectPCs(PCA_output)

Arguments

PCA_output

Output from geomorph::plotTangentSpace or stats::prcomp

Value

Returns selected PCs and variance explained

Examples

1
2
3
4
data(FRL_London)
PCA_out <- prcomp(FRL_London)

selectPCs(PCA_out)

iholzleitner/demopckg documentation built on Oct. 7, 2020, 12:26 a.m.