display.untb {untb} | R Documentation |
Animation of neutral ecological drift
Description
Displays an ongoing simulation of neutral ecological drift using nice colours and a simple animation technique. Does not work as intended in RStudio: use base R
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 |
gens |
Number of generations to simulate |
prob.of.mutate |
Probability of mutation. The default of zero
corresponds to |
cex |
The size of the dots used for plotting, defaulting to 3 |
individually |
Boolean, with default |
ask |
Boolean, with default |
flash |
Boolean, with |
delay |
Time delay between generations in seconds; meaningful
whatever the value of |
cols |
A vector of colours with default |
... |
Further arguments passed to |
Author(s)
Robin K. S. Hankin
References
S. P. Hubbell 2001. “The Unified Neutral Theory of Biodiversity”. Princeton University Press.
Examples
data(butterflies)
display.untb(start=butterflies,prob=0, gens=1e2)