Mirrors landmark templates for each specimen and calculates mean of original and mirrored template (see also mirror_templates)

symm_templates(data, mirroredlandmarks)

Arguments

data

Array holding landmark data of dimensions p, k, and n. p = number of landmarks, k = dimension (2D or 3D), n = number of specimens.

mirroredlandmarks

Vector specifying order of mirrored landmarks

Value

Returns array containing symmetrized landmark data

Examples

data(LondonSet_aligned) data(mirroredlandmarks) symm <- symm_templates(LondonSet_aligned, mirroredlandmarks) geomorph::plotAllSpecimens(LondonSet_aligned)
geomorph::plotAllSpecimens(symm)