Description Usage Arguments Details Value References Examples
Given a phylo object and a picante-style community data matrix (sites are rows, species are columns), calculated corrected phylogenetic species clustering
1 | pscCorr(samp, tree)
|
samp |
A picante-style community data matrix with sites as rows, and species as columns |
tree |
Phylo object |
Returns the inverse of psc as defined in picante
A data frame of correctly calculated PSC values, with associated species richness and name of all communities in input cdm
Helmus, M.R., T.J. Bland, C.K. Williams, & A.R. Ives. 2007. Phylogenetic measures of biodiversity. The American Naturalist. 169:E69-E83.
1 2 3 4 5 6 7 8 | #simulate tree with birth-death process
tree <- geiger::sim.bdtree(b=0.1, d=0, stop="taxa", n=50)
sim.abundances <- round(rlnorm(5000, meanlog=2, sdlog=1)) + 1
cdm <- simulateComm(tree, richness.vector=10:25, abundances=sim.abundances)
results <- pscCorr(samp=cdm, tree=tree)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.