Functions like plotAllSpecimens allow the user to
visualize shape variance within an entire set of specimens. If one
wishes to visualize the shape differences between just two sets of
coordinates - say, between the mean shape of a dataset, and another
specimen of interest - one can use plotRefToTarget.
plotRefToTarget()
$consensus.
This method generates a thin-plate spline (TPS) deformation grid. Can be used for 2D or 3D data. For 3D data, deformations will be generated in both the xy and xz planes. For this, and each of the following examples, we compare the first specimen in our data set to the mean shape.
plotRefToTarget(GPApleth$consensus, GPApleth$coords[,,1], links = links, method = "TPS")

The vector show method, shows displacements in morphospace between corresponding landmarks in the reference (M1) and target (M2) specimen.
plotRefToTarget(GPApleth$consensus, GPApleth$coords[,,1], links = links, method = "vector")

This method plots landmarks of the target specimen on top of those of the reference. By default, the reference shape will be plotted in black.
plotRefToTarget(GPApleth$consensus, GPApleth$coords[,,1], links = links, method = "points")

An input mesh3d object is warped using thin-plate spline. This illustrates shape differences between the reference and target specimen using a 3D object.
plotRefToTarget(GPAscal$consensus, GPAscal$coords[,,1], mesh = mesh, method = "surface")