Learn R Programming

Momocs (version 0.2-03)

A.mshape: Calculates the mean shape of an array of landmarks.

Description

A.mshape returns the mean shape of an array of landmarks when provided with landmarks as rows, $(x; y)$ coordinates as columns, and individuals as the third dimension of the array.

Usage

A.mshape(A)

Arguments

A
An array of $(x; y)$ coordinates, typically, landmarks.

Value

  • Returns a matrix of $(x; y)$ coordinates.

See Also

A.points, A.segments, A.plot coo.plot, and the others coo.utilities.

Examples

Run this code
data(gorf.dat) # we import gorf.data from shapes
A.plot(gorf.dat, pch=20)
m <- A.mshape(gorf.dat)
points(m, pch=5)

Run the code above in your browser using DataLab