Learn R Programming

geomorph (version 2.0.1)

define.modules: Define modules (landmark partitions)

Description

An interactive function to define which landmarks should be assigned to each module (landmark partition).

Usage

define.modules(spec, nmodules)

Arguments

spec
Name of specimen, as an object matrix containing 2D landmark coordinates
nmodules
Number of modules to be defined

Value

  • Function returns a vector of which landmarks belong in which module (e.g. A,A,A,B,B,B,C,C,C) to be used with compare.modular.partitions option 'landgroups'.

Details

Function takes a matrix of two-dimensional digitized landmark coordinates such as made by digitize2d, and allows user assign landmarks to each module. The output is a list of which landmarks belong in which partition, to be used by compare.modular.partitions. The number of modules is chosen by the user (up to five). Selection{ Choosing which landmarks will be included in each module involves landmark selection using a mouse in the plot window. The user is prompted to select each landmarks for module 1: using the LEFT mouse button (or regular button for Mac users), click on the hollow circle to choose the landmark. Selected landmarks will be filled in. When all landmarks for module 1 are chosen, press 'esc', and then start selecting landmarks for module 2. Repeat until all modules are defined. } Note: Function currently only implemented for 2D landmark data.

See Also

compare.modular.partitions