Learn R Programming

Momocs (version 1.4.1)

get_ldk: Retrieves landmarks coordinates

Description

See Details for the different behaviors implemented.

Usage

get_ldk(Coo)

Value

a list of shapes

Arguments

Coo

an Out, Opn or Ldk object

Details

Different behaviors depending on the class of the object:

  • Ldk: retrieves landmarks.

  • Ldk with slidings defined: retrieves only the fixed landmarks, not the sliding ones. See also get_slidings.

  • Out landmarks from $ldk and $coo, if any.

  • Opn: same as above.

See Also

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

Examples

Run this code
# Out example
ldk.h <- get_ldk(hearts)
stack(Ldk(ldk.h))

# on Ldk (no slidings)
get_ldk(wings) # equivalent to wings$coo

# on Ldk (slidings)
get_ldk(chaff)
get_ldk(chaff) %>% Ldk %>% fgProcrustes(tol=0.1) %>% stack

Run the code above in your browser using DataLab