Description Usage Arguments Value
Performs the following functions. 1) create an empty raster to hold the output, 2) fill the raster with NAs, 3) Set the center pixel equal to 1.
This faciliates using other functions in the raster package that calculate distance and direction to the closest non-NA pixel. This is useful because the output of acorr
returns the spatial autocorrelation for all directions simutaneously and thus needs to be linked to distance and direction to generate a correlogram.
1 | acorr_center(x)
|
x |
A raster* object |
A raster object with all cells NA except the center pixel.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.