Learn R Programming

Momocs (version 0.2-03)

coo.sample.int: Given an outline, interpolates points along the curvilinear abscissa.

Description

coo.sample.int interpolates n points in coo along the curvilinear abscissa.

Usage

coo.sample.int(coo, n)

Arguments

coo
A list or a matrix of coordinates.
n
integer. The number of points to sample.

Value

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

Details

This function circumvent the problem exposed in the Details section of coo.sample, i.e. points are here samples along the "true" curvilear abscissa and not based on seq.

See Also

coo.sample, coo.sample.rr.

Examples

Run this code
data(bot)
coo <- coo.sample(bot@coo[[1]], 12)
coo.plot(coo, points=TRUE)
coo.draw(coo.sample.int(coo, 20), col="#B2222255", border=NA)
coo.draw(coo.sample(coo, 20),     col="#1874CD55", border=NA)

Run the code above in your browser using DataLab