Practicing and Synthesis
Morphometrics Lesson 5
Put what you have learned into action! lets do some analyses of the 3D scallop shape data built into the geomorph package
Loading Packages and Scripts
Import Data
data(scallops)Run Procrustes superimposition
Y.gpa <- gpagen(A = scallops$coorddata,
curves = scallops$curvslide,
surfaces = scallops$surfslide)Exercise
- Carry out a PCA and plot the results
- Plot 3D representatives of the shape change along PC axes 1 and 2 using the “vector” method in the
plotRefToTargetfunction - Test for allometry: does size (centroid size) predict shape?
regression.Data<-geomorph.data.frame(size = Y.gpa$Csize, shape=Y.gpa$coords)
#calculate a regression
model <- procD.lm(shape~size, data=regression.Data, RRPP=TRUE)