LMK_swap: Swap Landmarks

Description Usage Arguments Author(s) Examples

View source: R/package-support.R

Description

Function to swap landmark sequences within an individual or across an entire array

Usage

1
LMK_swap(a, l1, l2)

Arguments

a

a p x k x n matrix of landmark coordinates

l1

a numeric vector of landmark index (sequence number) to be changed

l2

a numeric vector of landmark index (Sequence number) to change to

Author(s)

Daniel Ehrlich

Examples

1
2
3
4
lmks <- cbind(1:10, 1:10, 1:10)
plot(lmks, col = rainbow(10), pch = 16) ## plot sequence (in 2 dimensions)
lmks2 <- LMK_swap(lmks, l1 = c(2,8), l2 = c(8,2)) ## flip landmarks 2,8
plot(lmks2, col = rainbow(10), pch = 16) ## show flipped landmarks

lmkCHK documentation built on Oct. 23, 2020, 5:21 p.m.