Practicing and Synthesis

Morphometrics Lesson 5

Author

Ryan N. Felice

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

  1. Carry out a PCA and plot the results
  2. Plot 3D representatives of the shape change along PC axes 1 and 2 using the “vector” method in the plotRefToTarget function
  3. 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)