acorr_center: Finds the center pixel to faciltate comparison of results...

Description Usage Arguments Value

View source: R/acorr_center.R

Description

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.

Usage

1

Arguments

x

A raster* object

Value

A raster object with all cells NA except the center pixel.


AdamWilsonLab/rasterAutocorr documentation built on March 19, 2020, 12:01 a.m.