Description Usage Arguments Value
maturing
Performs some of the routine steps for getting landmark data ready for shape analyses, such as Procrustes alignment and principal component analysis. For more details see vignette:
vignette("intro", package = "facefuns")
1 2 3 4 5 6 7 8 | facefuns2d(
data,
remove_points = NULL,
pc_criterion = "broken_stick",
plot_sample = TRUE,
auto_rotate = TRUE,
quiet = FALSE
)
|
data |
Three-dimensional array of dimensions p, k, and n. p = number of landmarks, k = dimension (2D or 3D), n = number of specimens |
remove_points |
Specify any points/lamdmarks you want to remove. See remove_points and frl_features |
pc_criterion |
Criterion used to choose which PCs to retain. See select_pcs |
plot_sample |
Plot sample to check data. See plotAllSpecimens |
auto_rotate |
Landmark templates are sometimes no longer upright after Procrustes-alignment. Auto-rotate uses rotate.coords to guess which type of rotation is required |
quiet |
Print short summary of loaded data |
Returns a list of the following components:
aligned |
Three-dimensional array containing Procrustes-aligned data |
average |
Coordinates of sample average for plotting |
pc_info |
List of selected PCs (including their SD, variance explained and cumulative variance explained), number of selected PCs, criterion used to select PCs |
pc_scores |
Principal component scores |
pc_plot |
PCs for plotting. Will by default create list of coordinates for all selected PCs at +/- 3SDs. To create plots of other PCs or at different level of SD, please see plot_2dpcs |
summary |
Short summary of key descriptives |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.