aacf | R Documentation |
Calculates the areal autocorrelation function (AACF) as the
inverse of the Fourier power spectrum. aacf(x)
returns
the AACF in both matrix and raster format.
aacf(x)
x |
An n x n raster or matrix. |
A raster or matrix representation of the AACF. Both raster and matrix values are normalized so that the maximum is equal to 1.
# import raster image
data(normforest)
normforest <- terra::unwrap(normforest)
# calculate aacf img and matrix
aacf_out <- aacf(normforest)
# plot resulting aacf image
terra::plot(aacf_out)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.