digit.curves.p | R Documentation |
Creates homogeneous level curve for every model (adapted from the function digit.curves of the geomorph R package)
digit.curves.p(start, curve, nPoints, closed = TRUE)
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) |
A matrix of coordinates for nPoints equally spaced semilandmarks sampled along the curve
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.
digit.curves
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.