[Maturing]

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

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)