Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

getPCscores

Obtain PC-scores for new landmark data


Description

Obtain PC-scores for new landmark data

Usage

getPCscores(x, PC, mshape)

Arguments

x

landmarks aligned (e.g. using align2procSym to the meanshape of data the PCs are derived from.

PC

Principal components (eigenvectors of the covariance matrix)

mshape

matrix containing the meanshape's landmarks (used to center the data)

Value

returns a matrix containing the PC scores

See Also

Examples

data(boneData)
proc <- procSym(boneLM[,,-c(1:2)])
newdata <- boneLM[,,c(1:2)]
newdataAlign <- align2procSym(proc,newdata)
scores <- getPCscores(newdataAlign,proc$PCs,proc$mshape)

Morpho

Calculations and Visualisations Related to Geometric Morphometrics

v2.8
GPL-2
Authors
Stefan Schlager [aut, cre, cph], Gregory Jefferis [ctb], Dryden Ian [cph]
Initial release
2020-02-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.