Learn R Programming

geomorph (version 3.2.1)

mshape: Estimate mean shape for a set of aligned specimens

Description

Estimate the mean shape for a set of aligned specimens

Usage

mshape(A)

Arguments

A

Either a list (length n, p x k), A 3D array (p x k x n), or a matrix (n x pk) containing GPA-aligned coordinates for a set of specimens

Details

The function estimates the average landmark coordinates for a set of aligned specimens. It is assumed that the landmarks have previously been aligned using Generalized Procrustes Analysis (GPA) [e.g., with gpagen]. This function is described in Claude (2008).

One can then use the generic function plot to produce a numbered plot of landmark positions and potentially add links, in order to review landmark positions

References

Claude, J. 2008. Morphometrics with R. Springer, New York.

Examples

Run this code
# NOT RUN {
data(plethodon)
Y.gpa<-gpagen(plethodon$land)    #GPA-alignment

mshape(Y.gpa$coords)   #mean (consensus) configuration
# }

Run the code above in your browser using DataLab