Create a data frame with shape data
A list similar to a data frame to facilitate analysis of shape data.
geomorph.data.frame(...)
... |
a list of objects to include in the data frame. |
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)
Michael Collyer
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))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.