Learn R Programming

Momocs (version 0.2-6)

coo.sample: Samples points along the curvilinear abscissa.

Description

coo.sample samples n points in coo along the curvilinear abscissa.

Usage

coo.sample(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

So far points are just sampled along the coo provided) and not along the "true" curvilinear abscissa, but in most cases, differences should be very small.

See Also

coo.sample.rr.

Examples

Run this code
data(bot)
coo <- bot@coo[[1]]
coo.plot(coo,  main="24 points sampled along the outline")
points(coo.sample(coo, 24), col="red", pch=20)

Run the code above in your browser using DataLab