Learn R Programming

geomorph (version 4.0.8)

findMeanSpec: Identify specimen closest to the mean of a set of Procrustes shape variables

Description

A function to identify which specimen lies closest to the estimated mean shape for a set of Procrustes shape variables.

Usage

findMeanSpec(A)

Value

Function returns the name and address of the specimen closest to the mean of the set of Procrustes shape variables.

Arguments

A

A 3D array (p x k x n) containing landmark coordinates for a set of Procrustes shape variables

Author

Emma Sherratt

Details

Function takes a 3D array of Procrustes shape variables (such as made by gpagen, calculates the distance of each to the estimated mean shape, and returns the name and address of the closest specimen. This function can be used to identify the specimen to be used by warpRefMesh.

See Also

warpRefMesh