Description Usage Arguments Details Value References Examples
Run the CONFETTI model
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)
|
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.
|
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. |
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.
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:
census - a dataframe with x,y coordinates and species ID for every tree in the simulated community. The census represents the last simulated time step and is only provided when nRep = 1 and avg = F.
abundance - a vector (or matrix) with the number of individuals for every species. Only provided when nRep = 1 and avg = F.
species - a dataframe with species properties: (1) the species ID, (2) the relative abundance in the metacommunity, (3) the mean dispersal distance, (4) the species-specifc conspecific negative density dependence (CNDD), (5) the species-specific recruitment probability without competition. Only provided when nRep = 1 and avg = F.
generations - Number of generations for which model output is calculated.
nSpecies - Number of species
Shannon - Shannon diversity index H = - ∑ log(pi) * pi
Simpson - Simpson diversity index S = 1 - ∑ 1/pi^2, where pi is the relative abundance of species i. This essentially estimates the probability of randomly drawing two individuals from different species (probability of interspecific encounter)
SAD - species abundance distribution with logarithmic abundance classes (1, 2-3, 4-7, 8-15, ..., >=2048 individuals)
Area - sampling areas for species-area relationship (SAR) in m^2
SAR - species-area relationship: average species numbers in quadrats of different sizes
radius - neighbourhood radii for calculation of F(r) and PCF(r) functions
Fr - Proportion of conspecific neighbors: This estimates the probability that two trees seperated by distance r belong to the same species.
PCF - pair-correlation function. Measure of spatial aggregation of regularity across scales. A value of 1 indicates a random pattern, PCF > 1 indicates aggregation and PCF < 1 regularity (=repulsion of individuals)
When nRep > 1 or avg = T only the list with the summary statistics is returned, but no output on trees or single species.
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
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.