Produce a presence/absence matrix from a matrix of shared species between sites.
produce_presabs_matrix(sharedmatrix, nsamples = 1000)
a matrix where each cell contains the number of species shared between the column and row.
number of times to sample the possible new rows. Higher values take longer, but they are more likely to return the actual answers.
This function is designed to link alpha and beta diversity values to presence/absence for maximum coverage.
Each cell in the input matrix should be an integer number of species shared between sites. So the diagonal will be alpha diversities while other cells will represent a type of beta diversity.
Returns a presence/absence matrix with sites across the rows and species down the columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.