make_pcs: Create list of PCs

Description Usage Arguments Value Examples

Description

\lifecycle

maturing

Usage

1
make_pcs(pca_output, ref, which_pcs, vis_sd)

Arguments

pca_output

Object of class prcomp or gm.prcomp

ref

2-D or 3-D coordinates of reference face

which_pcs

Which PCs are to be created. Single number or vector, maximum length is 3

vis_sd

Extent of desired manipulation in units of standard deviation

Value

A list of 2-D or 3-D coordinates for the reference face at -vis_SD and vis_SD standard deviations for each principal component

Examples

1
2
3
4
5
data(LondonSet_aligned)
data_aligned <- LondonSet_aligned
pca_output <- geomorph::gm.prcomp(data_aligned)
ref <- geomorph::mshape(data_aligned)
pc_list <- make_pcs(pca_output, ref, which_pcs = 1:3, vis_sd = 3)

iholzleitner/facefuns documentation built on March 19, 2021, 2:43 p.m.