Learn R Programming

spatialwarnings (version 3.1.1)

Spatial Early Warning Signals of Ecosystem Degradation

Description

Tools to compute and assess significance of early-warnings signals (EWS) of ecosystem degradation. EWS are spatial metrics derived from raster data -- e.g. spatial autocorrelation -- that increase before an ecosystem undergoes a non-linear transition (Genin et al. (2018) ).

Copy Link

Version

Install

install.packages('spatialwarnings')

Monthly Downloads

377

Version

3.1.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Alexandre Genin

Last Published

August 18th, 2025

Functions in spatialwarnings (3.1.1)

pl_fit

Distribution-fitting functions
plot_spectrum

Display the r-spectrum of a spectral_sews object
raw_cg_variance

Spatial variance indicator
raw_cg_moran

Moran's Index at lag of 1
raw_cg_skewness

Skewness indicator
reexports

Objects exported from other packages
raw_structvar

Structural variance
raw_sdr

Spectral Density Ratio (SDR) indicator
simple_sews

simple_sews objects
raw_kbdm

Kolmogorov complexity of a matrix
raw_plrange

Power-law range indicator
raw_moran

Spatial correlation at lag 1
raw_variogram_metrics

Variogram parameters
serengeti

Serengeti dataset
rspectrum

r-spectrum
variogram_sews_plot

Early-warning signals based on variograms
spectral_sews

Spectrum-based spatial early-warning signals.
variogram_sews

Early-Warning signals based on variograms (EXPERIMENTAL)
plot.simple_sews_test

Spatial early-warning signals: display of trends
variogram_sews_predict

predict() method for variogram_sews objects
spatialwarnings-package

Early Spatial-Warnings of Ecosystem Degradation
xmin_estim

Estimate the minimum patch size of a power-law distribution
dLSW

The Lifshitz-Slyozov-Wagner distribution
coarse_grain

Matrix coarse-graining
arizona

Aerial views of vegetation from Arizona, USA
display_matrix

Plot a matrix
create_indicator

Custom Spatial Early-Warning signals
convert_to_matrix

Convert an object to a matrix
extract_spectrum

Extract the r-spectrum from objects
extract_variogram

extract_variogram() method for variogram_sews objects
display_size_info

Display size information of a sews_result object
dda

Density-dependent aggregation model
indicator_psdtype

Change in patch-size distributions types
generic_sews

Generic Spatial Early-Warning signals
kbdm_sews

Indicator based on Kolmogorov Complexity
label

Labelling of unique patches and detection of percolation.
indictest

Significance-assessment of spatial early-warning signals
patchdistr_sews

Early-warning signals based on patch size distributions
indicator_plrange

Power-law range indicator
flowlength_sews

Flowlength connectivity indicator (uniform topography)
forestgap

A list of binary matrices and their associated parameters
lsw_sews

Indicators based on the LSW distribution
raw_clustering

Clustering of pairs
raw_flowlength_uniform

Flow length (uniform slope)
patchdistr_sews_predict

predict method for patchdistr_sews objects
patchdistr_sews_plot

Early-warning signals based on patch size distributions
patchsizes

Get patch sizes.