I would like to compare the behaviour of several dissimilarity measures (i.e. Bray-Curtis, Jaccard, Gower). I have seen this done using a principal component biplot (i.e. see Legendre and Caceres, 2013 below):
Any suggestions how one goes about this? Sample data provided below:
# Load the required packages
library(ade4)
library(vegan)
library(FD)
#Load data
data(dune)
# Calculate a series of dissimilarity measures for the data
dune.bc <- vegdist(dune, method="bray")
dune.mh <- vegdist(dune, method="manhattan")
dune.eu <- vegdist(dune, method="euclidean")
dune.cn <- vegdist(dune, method="canberra")
dune.k <- vegdist(dune, method="kulczynski")
dune.j <- vegdist(dune, method="jaccard")
dune.g <- vegdist(dune, method="gower")
dune.m <- vegdist(dune, method="morisita")
dune.h <- vegdist(dune, method="horn")
dune.mf <- vegdist(dune, method="mountford")
dune.r <- vegdist(dune, method="raup")
dune.bi <- vegdist(dune, method="binomial")
dune.c <- vegdist(dune, method="chao")
#Compare the behaviour of the dissimilarity measures using a PCA plot
# Suggestions on how proceed with this step would be greatly appreciated!
Hmm, that's not what the authors do. If you read that paper, the PCA biplot is one of the matrix of properties of each dissimilarity coefficient, not a PCA of on k dissimilarity matrices. Basically, they analysed Table 2 in the paper via PCA (minus the column at the far right, labelled *D*max).
I don't know a way to compare dissimilarity matrices, other than via a Procrustes rotation and associated PROTEST permutation test, or a Mantel test, perhaps: see
procrustes()
,protest()
andmantel()
You can look at the
rankindex()
of the coefficients with the gradient values as another comparison.