geomorph.data.frame {geomorph} | R Documentation |
Create a data frame with shape data
Description
A list similar to a data frame to facilitate analysis of shape data.
Usage
geomorph.data.frame(...)
Arguments
... |
a list of objects to include in the data frame. |
Details
This function produces a list that can be used like a data frame in other analytical functions.
The purpose is similar to the function, data.frame
, but without the constraint that
data must conform to an n (observations) x p (variables) matrix. Rather, the list produced is
constrained only by n. List objects can be Procrustes shape variables, matrices, variables,
distance matrices, and phylogenetic trees. Results from gpagen
can be directly
imported into a geomorph.data.frame to utilize the coordinates and centroid size as variables. (See Examples)
Author(s)
Michael Collyer
Examples
## Not run:
data(plethodon)
Y.gpa <- gpagen(plethodon$land, PrinAxes = FALSE)
gdf <- geomorph.data.frame(Y.gpa)
attributes(gdf)
gdf <- geomorph.data.frame(Y.gpa, species = plethodon$species,
site = plethodon$site)
attributes(gdf)
# Using geomorph.data.frame to facilitate analysis
anova(procD.lm(coords ~ Csize + species * site, data = gdf))
## End(Not run)
[Package geomorph version 4.0.8 Index]