multiCWRsim: Multiple simulations of the Community Wide Rescue model (CWR)

Description Usage Arguments Value Examples

Description

Multiple simulations of the Community Wide Rescue model (CWR)

Usage

1
2
multiCWRsim(tmax, b1, d1, b2, d2, m12, m21, k1, abun_original, nsim,
  filenomen, interval)

Arguments

tmax

Arbitrary units of time the simulation should be run

b1

Birthrate of the mutants

d1

Deathrate of the mutants

b2

Birthrate of the residents

d2

Death rate of the residents

m12

Mutation rate of mutants to residents

m21

Mutation rate of residents to mutants

k1

Carrying capacity

abun_original

A vector of initial abundances for each species such as those created by generate_spat_abund

nsim

The number of simulations to be performed

filenomen

The name of the plot that is saved

#'@author Timo van Eldijk

interval

After how many evenst should the population state be saved to the output matrix

Value

this function plots all the results of the simulations in a .tiff file in the current working directory

Examples

1
2
3
multiCWRsim(10,0.6 , 0.1, 0.05, 0.1, 0, 0.0005, 16000,
generate_spat_abund(theta = 200,Ivec = rep(40,1),Jvec = c(16000)),
2, "CWR.tiff", 200)

DeadParrot69/CWERNI documentation built on April 21, 2020, 3:10 a.m.