Learn R Programming

Momocs (version 1.4.1)

def_ldk: Defines new landmarks on Out and Opn objects

Description

Helps to define landmarks on a Coo object. The number of landmarks must be specified and rows indices that correspond to the nearest points clicked on every outlines are stored in the $ldk slot of the Coo object.

Usage

def_ldk(Coo, nb.ldk, close, points)

Value

an Out or an Opn object with some landmarks defined

Arguments

Coo

an Out or Opn object

nb.ldk

the number of landmarks to define on every shape

close

logical whether to close (typically for outlines)

points

logical whether to display points

See Also

Other ldk/slidings methods: add_ldk(), def_slidings(), get_ldk(), get_slidings(), rearrange_ldk(), slidings_scheme()

Examples

Run this code
if (FALSE) {
bot <- bot[1:5] # to make it shorter to try
# click on 3 points, 5 times.
# Don't forget to save the object returned by def_ldk...
bot2 <- def_ldk(bot, 3)
stack(bot2)
bot2$ldk
}

Run the code above in your browser using DataLab