Learn R Programming

Momocs (version 0.2-6)

coo.align: Aligns a list or matrix of coordinates.

Description

coo.align aligns coo using its best fitting ellipse.

Usage

coo.align(coo)

Arguments

coo
A list or a matrix of coordinates.

Value

  • Returns a matrix of (x; y)coordinates.

Examples

Run this code
def.par <- par(no.readonly = TRUE)
layout(matrix(1:2, 1, 2))
data(bot)
coo <- bot@coo[[1]]
coo.plot(coo, main="A shape")
coo.plot(coo.align(coo), border="red", col=NA, main="An aligned shape")
par(def.par)

Run the code above in your browser using DataLab