Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/qtleffect_shape.R
Convert a matrix of landmark coordinates into an array [n.land x n.dim x n.obs].
1 | asShapeArray(shapes, n.land, n.dim, byrow = TRUE)
|
shapes |
A matrix of shape coordinates n.obs rows of [x1 y1 z1 x2 y2 z2 ...] |
n.land |
Number of landmarks |
n.dim |
Number of dimensions (2 or 3) |
byrow |
logical (default TRUE: data arranged initially according to x1 y1 z1 x2 y2 z2...). FALSE: data arranged initially according to x1 x2 x3 .... xp y1 .... yp z1 .... zp (used in the Morpho package) |
The function converts a matrix of landmark coordinates into an array. Such arrays are common format used in other morphometrics packages (shape, geomorph, Morpho). Each row of the input matrix contains coordinates for a single specimens.
The function returns a multidimensional array [n.land x n.dim x n.obs]. The third dimension contains the names of each specimens if it was specified as row names in the input matrix.
Nicolas Navarro
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.