Description Usage Arguments Details Value Author(s) References Examples
Calculate ELSA indicator for either a categorical or continuous spatial dataset.
1 |
x |
a raster object ( |
d |
numeric local distance, or an object of class neighbours created by dneigh when x is SpatialPoints or SpatialPolygons |
nc |
optional, for continuous data it specifies the number of classes through categorizing the variable. If missed, it is automatically calculated (recommended) |
categorical |
logical, specified whether x is a continuous or categorical. If missed the function tries to detect it |
dif |
the difference between categories, only for categorical |
... |
additional arguments including:
|
dif can be used when categorical values are sorted into hierarchical system (e.g., CORINE land cover). This make it possible to difine different weights of similarity between each pairs of categories when the level of similarity is not the same between different classes in the variable. For example, two categories belong to two forest types are more similar than two categories, one a forest type and the other one an agriculture type. So, it can take this differences into account when the spatial autocorrelation for categorical variables is quantified.
the ELSA statistics has two terms that is called the left term ("L") and the right term ("R") in the reference. It can be specified through the stat
argument if either of these terms should be returned from the function or ELSA ("E"), which is the multiplication of L * R
. All three terms can also be selected.
RasterLayer |
if |
Babak Naimi naimi.b@gmail.com
Naimi. B. et al. (under review) ELSA: An Entropy-based Local indicators of Spatial Association, Geographical Analysis;
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Loading required package: sp
Loading required package: raster
sh: 1: awk: Permission denied
sh: 1: awk: Permission denied
sh: 1: awk: Permission denied
sh: 1: awk: Permission denied
sh: 1: awk: Permission denied
sh: 1: awk: Permission denied
sh: 1: awk: Permission denied
The input dataset is considered as a big raster dataset that will be handled out of memory (on the disk), but if you have enough memory on your machine, you can change the settings for maxmemory, and chuncksize, in the rasterOptions function, then the process may be handled in memory that would be much faster...Warning messages:
1: In .rasterFromRasterFile(grdfile, band = band, objecttype, ...) :
size of values file does not match the number of cells (given the data type)
2: In .rasterFromRasterFile(grdfile, band = band, objecttype, ...) :
size of values file does not match the number of cells (given the data type)
Warning message:
In matrix(x, ncol = cr[1], nrow = cr[2], byrow = TRUE) :
data length [1989] is not a sub-multiple or multiple of the number of columns [71]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.