tpsRead: Reading tps files into R

Description Usage Arguments Value Author(s) References Examples

View source: R/tpsRead.R

Description

This function converts all tps files in a folder to a list of matrices. The tps files are created using the TPSDIG2 software (Rohlf, 2013, 2015).

Usage

1

Arguments

x

a constant that indexes the folder of interest

Value

a list of matrices containing the xy-coordinates of landmarks

Author(s)

Tsung Fei Khang tfkhang@um.edu.my

References

Khang TF, Soo OYM, Tan WB, Lim LHS. (2016). Monogenean anchor morphometry: systematic value, phylogenetic signal, and evolution. PeerJ 4:e1668.

Rohlf FJ. (2013). Morphometrics at SUNY Stony Brook. Available at http://life.bio.sunysb.edu/morph/soft-dataacq.html.

Rohlf FJ. (2015). The tps series of software. Hystrix. 26, doi: 10.4404/hystrix-26.1-11264.

Examples

1
2
3
4
5
6
7
##not run
##download the tps data folders from Khang et al. (2015) and unzip them into a folder called ligotps

#setwd("ligotps/")
#dir()
##read tps files from the /bantingensis folder and turn them into objects of a list
#xydata <- tpsRead(1)

Example output

Warning messages:
1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
2: 'rgl_init' failed, running with rgl.useNULL = TRUE 
3: .onUnload failed in unloadNamespace() for 'rgl', details:
  call: fun(...)
  error: object 'rgl_quit' not found 

monogeneaGM documentation built on May 29, 2017, 9:18 p.m.