display.untb | R Documentation |
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
display.untb(start, gens=100, prob.of.mutate = 0, cex=3, individually
= TRUE, ask = FALSE, flash = FALSE, delay = 0, cols=NULL, ...)
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 |
Robin K. S. Hankin
S. P. Hubbell 2001. “The Unified Neutral Theory of Biodiversity”. Princeton University Press.
data(butterflies)
display.untb(start=butterflies,prob=0, gens=1e2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.