subset.gmm: Subset a geometric morphometric shape dataset

subset.gmmR Documentation

Subset a geometric morphometric shape dataset

Description

Subset a geometric morphometric shape dataset

Usage

## S3 method for class 'gmm'
subset(A, specimens = NULL, landmarks = NULL)

Arguments

A

A geomorph.data.frame or a data structure produced by functions in the borealis package. A 3-dimensional array of XY coordinates for multiple specimens must reside in a list element called coords, gpagen$coords or gdf$coords. Associated metadata may exist in a matrix element called metadata or as vectors with a length equal to the number of specimens.

specimens

A numerical or logical vector for subsetting specimens and metadata.

landmarks

A numerical vector for subsetting landmarks. Subsetting landmarks will not affect metadata.

Source

Dave Angelini david.r.angelini@gmail.com [aut, cre]

Examples

data(plethodon, package = "geomorph")
x <- subset.gmm(plethodon, landmarks = 1:9, specimens = 1:3)
landmark.plot(x, specimen.number = 1:4)
x$site


aphanotus/borealis documentation built on Nov. 4, 2022, 8:44 p.m.