sim.meta.phy.comm
simulate a (sort of) meta-community
sim.meta.comm(size = 10, n.spp = 8, timesteps = 10, p.migrate = 0.05,
env.lam = 10, abund.lam = 5, stoch.lam = 1)sim.meta.phy.comm(size = 10, n.spp = 8, timesteps = 10, p.migrate = 0.3,
env.lam = 10, abund.lam = 5, stoch.lam = 1, p.speciate = 0.05)
p.migrate
chance of
migration)sim.meta.comm
. For sim.meta.phy.comm
, also a
phylogeny of species and a lookup table from the abundance array to
the phylogeny.List with the species abundances (as a 3D array), the environmental quality (carrying capacities), the phylogeny of species (which generates warnings when plotted, don't ask me why!), and a lookup table from the abundance array to the phylogeny.
sim.meta.comm
simulates species moving through a
metacommunity. At each time-step each cell's next abundance for
each species is env.quality
- current.abundance
+
stochastic
, and a species gets as many chances to migrate in
each time-step as it has cells (the same cell could migrate
multiple times). I use a Poisson for everything because I don't
want half-species (these are individuals), and keeping everything
in Poisson makes it easier to compare the relative rates of
everything.sim.meta.phy.comm
As above, but with a simulation of
phylogeny as well - there are no additional extinction parameters,
since extinction happens as a natural consequence of ecological
interactions.
sim.phy
scape