Simulates a community using Hubbell's species generator.
Hubbell's ultimate diversity number θ.
Size of generated community.
Hubbell's species generator P = θ/(θ + j -1) gives the probability that jth collected individual belongs to a new species. If, by chance, this happens, a new species is added to the community with abundance 1. If the jth individual belongs to an old species, abundance 1 is added to some of the old species. The probability of getting this new indivdiual is proportional to species abundances in community at the moment.
Returns a non-ranked vector of species abundances (integers).
The R code is crystal clear – at least much clearer than Hubbell's description (p. 290–291, incomprehensible spaghetti diagram in Fig. 9.1). Use the force, read the source.
Hubbell, S.P. (2001). The Unified Neutral Theory of Biodiversity and Biogeography. Princeton Univ. Press.
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.