ntbSimViz: Neutral Theory of biodiversity simulation and visualization

Description Usage Arguments Value Examples

View source: R/ntbSimViz.R

Description

Simulate communities under the neutral theory of biodiversity

Usage

1
ntbSimViz(fname, J, m, nu, Sm, SADm, nstep, init = NULL)

Arguments

fname

file name to save the animation to, ending in .mp4

J

size of the local community (i.e. number of individuals)

m

migration probability

nu

speciation probability

Sm

number of species in the metacommunity

SADm

function defining the metacommunity SAD as a pika::sad class object

nstep

number of time steps to simulate

init

initial state (optional, defults to NULL)

Value

Saves an animation and silently returns the final state of the community as a list with elements

Examples

1
x <- 'foo'

ajrominger/sntbs documentation built on Dec. 18, 2021, 11:29 p.m.