Learn R Programming

Momocs (version 1.4.1)

coo_ldk: Defines landmarks interactively

Description

Allows to interactively define a nb.ldk number of landarks on a shape. Used in other facilities to acquire/manipulate data.

Usage

coo_ldk(coo, nb.ldk, close = FALSE, points = TRUE)

Value

numeric that corresponds to the closest ids, on the shape, from cliked points.

Arguments

coo

a matrix or a list of (x; y) coordinates.

nb.ldk

integer, the number of landmarks to define

close

logical whether to close (typically for outlines)

points

logical whether to display points

Examples

Run this code
if (FALSE) {
b <- bot[1]
coo_ldk(b, 3) # run this, and click 3 times
coo_ldk(bot, 2) # this also works on Out
}

Run the code above in your browser using DataLab