Description Usage Arguments Details Value Author(s) References See Also Examples
Hubbell game is a zero-sum game, where a number of individuals is killed during a timestep, and these are replaced either from within the remaining community or from the surrounding metacommunity. In either case, the replacement probabilities are given by species frequencies.
1 2 3 4 |
comm, x |
A |
D |
Number of individuals killed during time step. |
m |
Probability of immigration. |
P |
Relative frequencies of species in the metacommunity. |
vec |
A vector giving counts of each species. |
sp.max |
Species number parameter for plots. |
... |
Other parameters passed to functions. |
Hubbell game is zero-sum game for a local community. In each time
step, D
individuals are killed. These may be replaced either
by the remaining species in the local community, or if m
> 0, they may be replaced by the surrounding metacommunity.
Metacommunity frequencies P
must be given by the user – a
Hubbellian way is to use rhubbell
.
The community comm
is an object of class hubbell
. This
is simply a vector giving the species id. number for each individual
in the community. Function hubb2vect
can be used to produce
the initial community. Function
plot
tries to displays the canopy using colour codes for
species, together with a ranked abundance – diversity (RAD) curve. The
parameter sp.max
determines the number of colours in plot and
the scaling of horizontal axis in RAD plot.
A hubbell
object.
Jari Oksanen
Hubbell, S.P. (2001). The Unified Neutral Theory of Biodiversity and Biogeography. Princeton Univ. Press.
radfit
for alternative visualization and
analysis.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Island Biogeography: completely isolated community
## starting with 40 species, each with 30 individuals (J=1200)
## and going for 100 time steps. Kill 240 individuals each year.
comm <- hubb2vect(rep(40,30))
comm
plot(comm, sp.max=30)
comm <- hubbell(comm, 240)
plot(comm, sp.max=30)
## Look for 100 time steps ahead
for (t in 1:100) comm <- hubbell(comm, D=240)
plot(comm, sp.max=30)
## Make a Hubbell metacommunity, and start immigration
metacomm <- rhubbell(20, 16000)
for (t in 1:100) comm <- hubbell(comm, D=240, m=0.1, P=metacomm)
comm ## More species now
plot(comm)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.