linear.dist: Linear distance

View source: R/linear.dist.R

linear.distR Documentation

Linear distance

Description

Measure the linear distance between pairs of landmarks

Usage

linear.dist(landmarks, measurements, dist = "euclidean")

Arguments

landmarks

A "matrix", "list" or "array", where the landmarks are rows and the columns are dimensions.

measurements

A pair of landmark IDs or a "list" of pairs of landmarks IDs.

dist

The type of distance as passed to dist (default is "euclidean").

Author(s)

Thomas Guillerme

Examples

## Loading the plethodon dataset
require(geomorph)
data(plethodon)
data(scallops)

## One measurement on multiple specimen
linear.dist(plethodon$land, c(1,2))

## List of multiple measurements on multiple specimen
linear.dist(scallops$coorddata, list("a" = c(1,2), "b" = c(2,15)))



TGuillerme/landvR documentation built on July 4, 2025, 10:16 p.m.