# Measuring phylogenetic signal in species interactions using a Mantel test
# with permutations keeping constant the number of partners per species
library(RPANDA)
# Load the data
data(mycorrhizal_network)
network <- mycorrhizal_network[[1]] # bipartite interaction matrix
tree_orchids <- mycorrhizal_network[[2]] # phylogenetic tree (phylo object)
# mantel_test_nbpartners(network, tree_orchids, method="Jaccard_weighted",
# correlation="Pearson", nperm = 1000)
Run the code above in your browser using DataLab