listed.gdf: Converts list elements gpagen and metadata into a geomorph...

listed.gdfR Documentation

Converts list elements gpagen and metadata into a geomorph data frame

Description

The input must be a list containing an element of type gpagen. This is ideally produced by procrustes.alignment. If the input contains a metadata element, then it and the gpagen element are used to create a new list element of class geomorph.data.frame. This element can be used in downstream functions. However, keeping it as an element within a larger list object allows retension of other elements, such as data provenance.

Usage

listed.gdf(x)

Arguments

x

A list containing the output of gpagen, metadata and provenance.

Source

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

References

Geomorph: Software for geometric morphometric analyses. R package version 3.2.1. D.C. Adams and M.L. Collyer and A. Kaliontzopoulou. 2020. (Link)

Examples

library(geomorph)
data("Bombus.forewings", package = "borealis")

names(Bombus.forewings)
cat(Bombus.forewings$provenance)

Y.gpa <- gpagen(Bombus.forewings$coords)

Y.gdf <- id.metadata.to.gdf(
  Y.gpa,
  id.factors = c("id","species","caste","digitizer"),
  provenance = Bombus.forewings$provenance
)

names(Y.gdf)

landmark.plot(Y.gdf$coords)
hist(Y.gdf$Csize)
with(Y.gdf, boxplot(Csize ~ species))
cat(Y.gdf$provenance)


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