multi.mantel(Y, X, nperm=1000)"matrix" or a distance matrix of class "dist".Y can be a object of class "matrix" or class "dist".Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.