display.untb
From untb v1.6-5
by Robin K S Hankin
Animation of neutral ecological drift
Displays an ongoing simulation of neutral ecological drift using nice colours and a simple animation technique
- Keywords
- math
Usage
display.untb(start, gens=100, prob.of.mutate = 0, cex=3, individually
= TRUE, ask = FALSE, flash = FALSE, delay = 0, cols=NULL, ...)
Arguments
- start
- Starting ecosystem; coerced to class census. Usually,
pass an object of class count; see examples. To start
with a monoculture of size 10, use
start=rep(1,10)
and to start with a system of maximal diversity (ie all singletons), - gens
- Number of generations to simulate
- prob.of.mutate
- Probability of mutation. The default of zero corresponds to $\theta=0$ and this means that any ecosystem will eventually become a monoculture (it is particularly instructive to watch this happen, especially with a starting ecosystem of ma
- cex
- The size of the dots used for plotting, defaulting to 3
- individually
- Boolean, with default
TRUE
meaning that a timestep means the death of a single individual and the simultaneous birth of a new individual; andFALSE
meaning that a timestep refers to every individual in the system - ask
- Boolean, with default
FALSE
meaning to display the generations autonomously, andTRUE
meaning to wait for the user to hit thereturn before proceeding - flash
- Boolean, with
TRUE
meaning to indicate the site of a death/birth with a flashing ring; and defaultFALSE
meaning to omit the flashing ring. UseTRUE
for pedagogic purposes, possibly withask
- delay
- Time delay between generations in seconds; meaningful
whatever the value of
flash
andindividually
- cols
- A vector of colours with default
NULL
meaning to choose them randomly. Useful for printing stills from a movie - ...
- Further arguments passed to
plot()
andpoints()
References
S. P. Hubbell 2001.
Examples
data(butterflies)
display.untb(start=butterflies,prob=0, gens=1e2)
Community examples
Looks like there are no examples yet.