ReadLandmarkData: Extract landmark data

Description Usage Arguments Details Value Author(s)

Description

Read landmark coordinates and scales from a TPS file

Usage

1
ReadLandmarkData(datafile, m_byscale = T)

Arguments

datafile

TPS file containing two dimensional landmark data

m_byscale

Logical value (Default m_byscale=TRUE). If TRUE, landmark coordinates are multiply by scale

Details

The function returns landmark coordinates (array and data.frame format) and the scale of each specimen. If m_byscale = T the coordinates are multiple by the corresponding scale. ReadLandmarkData only works with TPS files that has only landmark coordinates (presence of CURVES and OUTLINES may cause malfunction).

Value

It returns a 3 element list:

df

Landmark coordinates as a data.frame. Sp factor correspond to species number.

array

Landmark coordinates as a three dimensional array.

scale

Vector of scales value for each specimen.

Author(s)

Cabrera Juan Manuel


Evomorph documentation built on May 2, 2019, 5:39 a.m.