ReadLandmarkData {Evomorph} | R Documentation |
Read landmark coordinates and scales from a TPS file
ReadLandmarkData(datafile, m_byscale = T)
datafile |
TPS file containing two dimensional landmark data |
m_byscale |
Logical value (Default m_byscale=TRUE). If TRUE, landmark coordinates are multiply by scale |
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).
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. |
Cabrera Juan Manuel