untb (version 1.0-20)

display.untb: Animation of neutral ecological drift

Description

Displays an ongoing simulation of neutral ecological drift using nice colours and a simple animation technique

Usage

display.untb(start, gens=100, prob.of.mutate = 0.001, cex=3, individually
= TRUE, flash = FALSE, t1 = 0, flashsleep = 0.1, ...)

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 use start=1:10.
prob.of.mutate
Probability of mutation.
individually
Boolean, indicating whether the ecosystem should evolve simultaneously (FALSE), or individually (TRUE)
gens
Number of generations to simulate
cex
The size of the dots used for plotting, defaulting to 3
flash
Boolean, with TRUE meaning to indicate the site of a death/birth with a flashing ring; and default FALSE meaning to omit the flashing ring and thus simulate much faster
t1
Time delay between generations
flashsleep
In function display.untb(), time delay of flashing ring
...
Further arguments passed to plot() and points().

References

S. P. Hubbell. The Unified Neutral Theory of Biodiversity. Princeton University Press, 2001.

Examples

Run this code
data(butterflies)
display.untb(start=butterflies,prob=0, gens=1e2)

Run the code above in your browser using DataLab