gpagen(A, Proj = TRUE, ProcD = TRUE, ShowPlot = TRUE, curves = NULL,
surfaces = NULL, pointscale = 1)
#Example 1: fixed points only
data(plethodon)
gpagen(plethodon$land)
points(mshape(gpagen(plethodon$land)$coords),pch=22,col="red",bg="red",cex=1.2)
#Example 2: points and semilandmarks on curves
data(hummingbirds)
#Matrix defining which points are semilandmarks (middle column)
#and in which directions they slide (columns 1 vs. 3)
hummingbirds$curvepts
#Using Procrustes Distance for sliding
gpagen(hummingbirds$land,curves=hummingbirds$curvepts,)
#Using bending energy for sliding
gpagen(hummingbirds$land,curves=hummingbirds$curvepts,ProcD=FALSE,)
#Example 3: points, curves and surfaces
data(scallops)
#Using Procrustes Distance for sliding
gpagen(A=scallops$coorddata, curves=scallops$curvslide, surfaces=scallops$surfslide)
Run the code above in your browser using DataLab