digit.curves.p: Creates homogeneous level curve for every model

View source: R/digit.curves.R

digit.curves.pR Documentation

Creates homogeneous level curve for every model

Description

Creates homogeneous level curve for every model (adapted from the function digit.curves of the geomorph R package)

Usage

digit.curves.p(start, curve, nPoints, closed = TRUE)

Arguments

start

A numeric vector of x,y, coordinates for the landmark defining the start of the curve

curve

A matrix (p x k) of 2D coordinates for a set of ordered points defining a curve

nPoints

Numeric how many semilandmarks to place equidistantly along the curve (not counting beginning and end points)

closed

Logical Whether the curve is closed (TRUE) or open (FALSE)

Value

A matrix of coordinates for nPoints equally spaced semilandmarks sampled along the curve

References

Bookstein, F. J. 1997 Landmark Methods for Forms without Landmarks: Morphometrics of Group Differences in Outline Shape. Medical Image Analysis 1(3):225-243.

Rohlf, F.J., 2015. The tps series of software. Hystrix 26(1):9-12.

See Also

digit.curves

Examples

# Curve  creation
x<-seq(0,30, length=200)
y=90-x^2
curve=data.frame(x,y)

# Homogenization of the number of points
ltl<-digit.curves.p(start=curve[1,], curve=as.matrix(curve), nPoints=98, closed = FALSE)
plot(ltl)

Alowis/mobirep documentation built on April 21, 2024, 7:51 p.m.