confetti.run: Run the CONFETTI model

Description Usage Arguments Details Value References Examples

View source: R/RunConfetti.R

Description

Run the CONFETTI model

Usage

1
2
3
4
5
6
7
8
confetti.run(pars = c(metaSR = 200, metaCV = 1, m = 0.01, rmax = 10, aRec =
  0.005, disp.m = 30, disp.cv = 0, CNDD.m = 1, CNDD.cv = 0, pRec.m = 1, pRec.cv
  = 0, trade1.CNDD.pRec = 0, a.CNDD.pRec = 0, b.CNDD.pRec = 0, c.CNDD.pRec = 0,
  trade2.CNDD.abund = 0, a.CNDD.abund = 0, b.CNDD.abund = 0, c.CNDD.abund = 0,
  trade3.disp.pRec = 0, a.disp.pRec = 0, b.disp.pRec = 0, c.disp.pRec = 0),
  nRep = 1, nGen = 100, nSteps.out = 1, nTrees = 10000, Xext = 500,
  Yext = 500, dist.max = 100, bin.width = 1, meta.SAD = 0,
  avg = FALSE)

Arguments

pars

Model parameters of CONFETTI. Either a vector of length 23 or a named vector of variable length. The names have to match the following list. When the parameter is unnamed the order has to correspond to the following list.

  1. metaSR - Species richness of the metacommunity

  2. metaCV - Coefficient of variation (sd/mean) of the metacommunity lognormal abundance distribution

  3. m - Immigration rate (Interval [0,1])

  4. rmax - Radius of interactions neighborhood (Interval [0,20])

  5. aRec - Parameter for recruitment competition (Interval [0,0.1])

  6. disp.m - Mean dispersal distance of species

  7. disp.cv - Coefficient of variation (sd/mean) of dispersal distance among species

  8. CNDD.m - Mean conspecific negative density dependence (CNDD)

  9. CNDD.cv - Coefficient of variation (sd/mean) of CNDD among species

  10. pRec.m - mean recruitment probability without competition in interval [0.001; 1]

  11. pRec.cv - Coefficient of variation (sd/mean) of recruitment probability among species

  12. trade1.CNDD.pRec - mode for trade-off between CNDD and recruitment probability. There are three different possible modes (parameterizations) for each of the three trade-offs:

    • 0: no trade-off

    • 1: linear: y = a + b * x

    • 2: logarithmic: y = a + b * log(x)

    • 3: exponential: y = a + b * exp(c * x)

  13. a.CNDD.pRec - parameters for CNDD-recruitment trade-off

  14. b.CNDD.pRec

  15. c.CNDD.pRec

  16. trade2.CNDD.abund - mode for trade-off between CNDD and metacommunity relative abundance:

  17. a.CNDD.abund - parameters for CNDD-metacommunity abundance trade-off

  18. b.CNDD.abund

  19. c.CNDD.abund

  20. trade3.disp.pRec - mode for trade-off between dispersal and recruitment probability:

  21. a.disp.pRec - parameters for dispersal-recruitment trade-off

  22. b.disp.pRec

  23. c.disp.pRec

nRep

Number of replicate runs with the same parameter set

nGen

Number of generations simulated. This means the model is simulates nGen*nTrees birth-death events

nSteps.out

Number of time steps with model output. If nSteps.out == 1 there is only model output from the last simulated time step. If nSteps.out > 1 there is output over time. The output time interval is calculated as nGen/nSteps.out. The initial condition is included in the output. Temporal output works only on combination with avg = F.

nTrees

Number of trees in the local community

Xext

Size of the local community in x-direction

Yext

Size of the local community in y-direction

dist.max

Maximum distance (in meters) over which the spatial patterns F(r) and PCF(r) are calculated.

bin.width

The distance bin-width used for the calculation of the spatial patterns F(r) and PCF(r),

meta.SAD

The abundance distribution of the metacommunity: (0) uniform distribution, (1) log-normal distribution with coefficient of variation metaCV.

avg

Logical variable: Should the non-temporal model output be averaged over the replicate runs? This works only if nSteps.out == 1.

Details

There are some constraints on parameter values that override the parameter settings. Species traits, i.e. recruitment probability, dispersal distance, and CNDD are simulated from probability distributions. To avoid biologically unrealistiv values a few constraints are implemented: Recruitment probability is restricted to the interval [0.001; 1]; For dispersal distance there is a lower bound of 0.1 m, and for CNDD the lower bound is 1, which means intraspecific competition equals interspedific competition. This lower bound excludes conspecific positive density dependence.

There can be only one trade-off that involves CNDD. If the parameter settings imply a trade-off between CNDD and recruitment as well as between CNDD and metacommunity abundance, the second one is ignored and just the trade-off with recruitment probability is simulated.

Value

The model simulates virtual tree censuses with coordinates and species identities for each tree. Several summary statistics are calculated from the census data. The summary statistics are calculated for each of the nSteps.out time steps. The model returns a list with the following elements:

When nRep > 1 or avg = T only the list with the summary statistics is returned, but no output on trees or single species.

References

May, F.; Huth, A. & Wiegand, T. (2015) Moving beyond abundance distributions: neutral theory and spatial patterns in a tropical forest Proceedings of the Royal Society of London B: Biological Sciences, 282, 20141657

May, F.; Wiegand, T.; Lehmann, S. & Huth, A. (2016) Do abundance distributions and species aggregation correctly predict macroecological biodiversity patterns in tropical forests? Global Ecology and Biogeography, 25, 575-585

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#Run CONFETTI with standard parameters
confetti.run()

# Define your own parameter vector
parvec <- c(500, 2.0, 0.01, 20, 0.005, 55, 0.2, 2.0, 0.2, 1.0, 0.0,
            0, 1.0, 0.0, 0.0, 0, 1.0, 0.0, 0, 1.0, 0.0, 0.0)
out1 <- confetti.run(pars = parvec)

# plot model output
plot(0:11, out1$SAD,type="b",xlab="log2(Abundance)", ylab="No. of species")
plot(out1$Area, out1$SAR, type="b", log="xy", xlab="Area [m2]", ylab="No. of species")

FelixMay/confettiRbasic documentation built on May 6, 2019, 4:36 p.m.