| ReadLandmarkData {Evomorph} | R Documentation | 
Extract landmark data
Description
Read landmark coordinates and scales from a TPS file
Usage
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
[Package Evomorph version 0.9 Index]