Skip to content
Miscellaneous geometric morphometric functions
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.


Type Name Latest commit message Commit time
Failed to load latest commit information.


Miscellaneous geometric morphometric functions

This repository contains a few useful and fairly diverse geometric morphometric functions which may be useful to others. All the functions are reasonably well commented with information on usage and similar. It started as a simple set of function that I distributed as help to the students of my course in Geometric Morphometrics (organized by Physalia Courses). They are incorporated into an R package to facilitate distribution and use.

Currently available functions

  • adjRand_test : Permutation test of the adjusted Rand index, which quantifies the agreement between two partitions (e.g., classification of specimens obtained using different methods)
  • BTailTest : Comparison of disparity between two groups
  • critical_angle : Critical angle for the test of difference between two vectors
  • disparity_test : Comparison of disparity between two groups
  • EscoufierRV : Computation of Escoufier RV, which quantifies levels of association between blocks of variables (Escoufier 1973 - Biometrics)
  • Kmultparallel : Parallelised computation of Adams' Kmult (useful for distributions of trees, see Fruciano et al. 2017 - Ecology and Evolution)
  • LM_relativepos_check : Check relative position of landmarks, comparing it to a reference specimen (useful to identify switched landmarks and similar in raw data)
  • ProjectOrthogonal : Projects data to subspace orthogonal to a given vector (for use in allometric correction, see Burnaby 1966 - Biometrics; Rohlf & Bookstein 1987 - Systematic Zoology; for use in dealing with measurement error, see Valentin et al. 2008 - Journal of Fish Biology; Fruciano 2016 - Development Genes and Evolution)
  • rescale_by_landmark_distance : Convenience function to rescale configurations of landmarks based on a vector of inter-landmark distances
  • reversePCA : Simple function to obtain the original variables (e.g., shape) from PC scores (and mean)
  • rotate_landmarks: Apply a user-defined rotation of a landmark configuration about the origin
  • rarefied_convex_hull : Computation of rarefied estimates of n-dimensional convex hull volume (a measure of disparity/morphospace occupation)
  • rarefied_disparity : Rarefied estimates of some measures of disparity/morphospace occupation
  • repeated_measures_test : Test of difference between two repeated measures
  • RVrarefied : Computation of rarefied estimates of Escoufier RV (see Fruciano et al. 2013 - Plos One)
  • RVcomparison : Permutation test for the difference in Escoufier RV (see Fruciano et al. 2013 - Plos One)
  • scaled_variance_of_eigenvalues : Compute estimates of the scaled variance of eigenvalues (a commonly used measure of integration)
  • TestOfAngle : Test of angle between two vectors, optionally allowing "flipping" of one of the two


From Github, using devtools



Currently, and for the foreseeable future, there are no plans to publish a proper paper describing the package. Each function, however, provides reasonable comments and references to the methods, which can (and should) be used when using the functions in the package (in addition to the usual citation to the package itself)

Build Status

You can’t perform that action at this time.