Description Usage Arguments Details Value Author(s) References Examples
Compute community-wide synchrony and its the significance via Monte Carlo randomizations. If all species fluctuate in perfect unison, the community-wide synchrony will be 1. If species undergo uncorrelated fluctuations, the community-wide synchrony will be 1/S. The Monte Carlo randomizations are performed by shuffling the columns of the community matrix independently. This function also returns the mean correlation between the columns of the matrix.
1 2 |
data |
community matrix in wide format where each row contains the abundance at each time step and each column corresponds to a different species. |
nrands |
number of randomizations to perform (default is 0) |
method |
Method to compute mean correlation between columns?
Options include |
alternative |
Alternative hypothesis. Options are
|
type |
Randomization method. The |
quiet |
Suppress progress bar when set to |
... |
Other parameters to |
Loreau and de Mazancourt (2008) show that community-wide synchrony \varphi can be quantified by computing the temporal variance σ_{x_T}^2 of the community time series x_T(t)=∑{x_i(t)} and the sum of the temporal standard deviation of the time series across all species ≤ft(∑{σ_{x_i}}\right)^2 such that: \varphi=\frac{σ_{x_T}^2}{≤ft(∑{σ_{x_i}}\right)^2}
Returns a named list containing:
obs |
the observed community synchrony |
meancorr |
the mean correlation between the columns of the matrix |
rands |
the community synchrony value the randomizations.
This variable is only returned if |
pval |
p-value of observed community synchrony.
This variable is only returned if |
alternative |
Alternative hypothesis. This variable is only returned if |
Tarik C. Gouhier (tarik.gouhier@gmail.com)
Loreau, M., and C. de Mazancourt. 2008. Species synchrony and its drivers: Neutral and nonneutral community dynamics in fluctuating environments. The American Naturalist 172:E48-E66.
Purves, D. W., and R. Law. 2002. Fine-scale spatial structure in a grassland community: quantifying the plant's eye view. Journal of Ecology 90:121-129.
1 2 3 4 5 6 7 8 9 | # Community matrix for 20 species undergoing random fluctuations
comm.rand=matrix(runif(100), nrow=5, ncol=20)
community.sync(comm.rand, nrands=20)$pval
# Community matrix for 20 species undergoing synchronized fluctuations
comm.corr=matrix(rep(comm.rand[,1], 20), nrow=5, ncol=20)
community.sync(comm.corr, nrands=20)$pval
# On "real" data
data(bird.traits)
community.sync(bird.traits, nrands=20)$pval
|
synchrony 0.2.3 loaded.
|
| | 0%
|
|==== | 5%
|
|======= | 10%
|
|========== | 15%
|
|============== | 20%
|
|================== | 25%
|
|===================== | 30%
|
|======================== | 35%
|
|============================ | 40%
|
|================================ | 45%
|
|=================================== | 50%
|
|====================================== | 55%
|
|========================================== | 60%
|
|============================================== | 65%
|
|================================================= | 70%
|
|==================================================== | 75%
|
|======================================================== | 80%
|
|============================================================ | 85%
|
|=============================================================== | 90%
|
|================================================================== | 95%
|
|======================================================================| 100%[1] 1
|
| | 0%
|
|==== | 5%
|
|======= | 10%
|
|========== | 15%
|
|============== | 20%
|
|================== | 25%
|
|===================== | 30%
|
|======================== | 35%
|
|============================ | 40%
|
|================================ | 45%
|
|=================================== | 50%
|
|====================================== | 55%
|
|========================================== | 60%
|
|============================================== | 65%
|
|================================================= | 70%
|
|==================================================== | 75%
|
|======================================================== | 80%
|
|============================================================ | 85%
|
|=============================================================== | 90%
|
|================================================================== | 95%
|
|======================================================================| 100%[1] 0.04761905
|
| | 0%
|
|==== | 5%
|
|======= | 10%
|
|========== | 15%
|
|============== | 20%
|
|================== | 25%
|
|===================== | 30%
|
|======================== | 35%
|
|============================ | 40%
|
|================================ | 45%
|
|=================================== | 50%
|
|====================================== | 55%
|
|========================================== | 60%
|
|============================================== | 65%
|
|================================================= | 70%
|
|==================================================== | 75%
|
|======================================================== | 80%
|
|============================================================ | 85%
|
|=============================================================== | 90%
|
|================================================================== | 95%
|
|======================================================================| 100%[1] 0.04761905
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.