Description Usage Arguments Details Value References See Also Examples
View source: R/task_generic_indic.R
This functions computes the spatial variance of a matrix.
1  raw_cg_variance(mat, subsize = 5)

mat 
A matrix. Its values can be logical, with 
subsize 
Dimension of the submatrix used to coarsegrain the
original matrix. This must be an integer less than size of the full
matrix. Coarsegraining reduces the size of the matrix by a factor

Spatial variance is a measure of fluctuations in space. Based on the theory of critical slowing down, when systems approach critical points they are expected to show increased fluctuations in space. Thus, increasing spatial variance is proposed as an early warning signal of impending critical transitions.
Many high resolution spatial data are classified as FALSE (empty) or TRUE (occupied). In such cases, spatial variance captures just the variance in data, but not that of spatial structure. To resolve the issue, this function employs a method called coarsegraining, proposed in Kefi et al (2014), and described in detail in Sankaran et al. (2017). One must specify a subsize above one for binary valued data sets to obtain meaningful values.
subsize
has to be an integer. It has to be less than or equal to
half of matrix size (N). subsize
must also be preferably a
divisor of N. If it is not a divisor of N, the remainder rows and columns
are discarded when computing coarsegraining matrices.
Null model evaluations are also done on coarsegrained matrices.
The variance of the coarsegrained matrix as a named vector
Guttal, V., and Jayaprakash, C. (2009). Spatial variance and spatial skewness: leading indicators of regime shifts in spatial ecological systems. Theoretical Ecology, 2(1), 312.
Kefi, S., Guttal, V., Brock, W.A., Carpenter, S.R., Ellison, A.M., Livina, V.N., et al. (2014). Early Warning Signals of Ecological Transitions: Methods for Spatial Patterns. PLoS ONE, 9, e92097.
Sankaran, S., Majumder, S., Kefi, S., and Guttal, V. (2017). Implication of being discrete and spatial in detecting early warning signals of regime shifts. Ecological Indicators.
1 2 3 4 5 6  ## Not run:
data(serengeti)
raw_cg_variance(serengeti[[1]])
compute_indicator(serengeti, fun = raw_cg_variance, subsize = 5)
## End(Not run)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.