rand.neutral | R Documentation |
Given the size of the metacommunity J
, and the fundamental
biodiversity number \theta
, generate an object of class
count
using a stochastic mechanism consistent with the
neutral theory.
rand.neutral(J, theta=NULL, prob.of.mutate=NULL, string = NULL, pad = FALSE)
J |
Size of metacommunity |
theta |
Fundamental biodiversity number |
prob.of.mutate |
Probability of mutation |
string |
String to add to species names. By default (ie
|
pad |
Boolean, with default |
Uses the simulation method on page 289 of Hubbell (2001).
If pad
is TRUE
, and you set string
to
“extinct
”, things will break.
Robin K. S. Hankin
S. P. Hubbell 2001. “The Unified Neutral Theory of Biodiversity”. Princeton University Press.
untb
rand.neutral(1000, 9)
rand.neutral(1000, 9, string="spp.")
data(butterflies)
rand.neutral(no.of.ind(butterflies), optimal.theta(butterflies),string="spp.")
# what is the distribution of abundance of the second ranked species if
# J=10, theta=0.7?
plot(table(replicate(100,rand.neutral(10,theta=0.7,pad=TRUE)[2])))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.