Learn R Programming

Momocs (version 0.2-6)

baseline(Coo): Re-register a Coo on a new baseline.

Description

edm returns the euclidean distances between points $$1 -> n$$ of two 2-col matrices of the same dimension. This function is used internally but may be of interest for other analyses.

Usage

baseline(Coo, ldk1=1, ldk2=2, t1=c(-0.5, 0), t2=c(0.5, 0))

Arguments

Coo
The Coo object from which to retrieve coordinates.
ldk1
index of the first reference landmark.
ldk2
index of the second reference landmark. See Examples.
t1
$(x; y)$ coordinates of the first target point.
t2
$(x; y)$ coordinates of the second target point.

Value

  • Returns a Coo registered in the new baseline.

See Also

ed, edm.nearest, dist.

Examples

Run this code
def.par <- par(no.readonly = TRUE)
layout(matrix(1:2, 1, 2))
data(hearts)
stack(hearts, border="#1A1A1A22")
hearts2 <- baseline(hearts, 2, 4)
stack(hearts2, border="#1A1A1A22")
par(def.par)

Run the code above in your browser using DataLab