mirrorfill1: Fill missing landmarks for a single specimen using mirrored...

Description Usage Arguments Details Examples

Description

Given an n x 3 matrix, replace a set of landmarks using their mirrored counterpart.

Usage

1
mirrorfill1(s, l1, l2)

Arguments

s

An n x 3 matrix containing 3D landmark data of n landmarks.

l1

Vector of indices for which landmarks to use to make a specimen midline.

l2

Vector or matrix of pairs of symmetrical landmarks.

Details

l2 should be either

Examples

1
2
3
4
5
6
7
8
9
 # Make data that is reflected in x plane
 s <- matrix(rep(1:21, 2), byrow = TRUE, ncol = 3)
 s[1:7, 1] <- -s[1:7, 1]

 # Now remove some data
 s[1, ] <- NA
 
 # Mirror point 1 using it's complimentary landmark, point 8.
 mirrorS <- mirrorfill1(s, l1 = c(2:7, 9:14), l2 = c(1, 8))

timcdlucas/paleomorph documentation built on May 31, 2019, 1:48 p.m.