PCA.afaces: Principal component analysis on afaces objects

Description Usage Arguments Value

View source: R/afaces.R

Description

Takes an afaces objet, uses as.matrix.afaces to convert it into a wide matrix, then call prcomp to perform the PCA. Returns a PCA object ala Momocs on which plot, MANOVA, etc. are defined.

Usage

1
2
## S3 method for class 'afaces'
PCA(x, scale. = TRUE, center = TRUE, fac = data.frame())

Arguments

x

an afaces object

scale.

logical, whether to scale the matrix

center

logical, whether to center the matrix

fac

data.frame (optionnal) that can be use with Momocs' PCA facilities.

Value

a list with the same components as prcomp plus $scale, $center, $mshape and $dim.


vbonhomme/eigenfaces documentation built on May 3, 2019, 4:35 p.m.