gridHR is an R package for estimating and exploring
animal home ranges using regular spatial grids. Home ranges can be
represented using either square or hexagonal cells, with space-use
intensity quantified from the number of animal locations occurring
within each occupied cell.
The package is designed around two complementary aspects of
home-range analysis. First, grid-based estimates provide a transparent
representation of the extent and spatial structure of the area used by
an animal. Second, gridHR provides a radial approach for
examining the internal organization of space use, quantifying how
space-use intensity changes as distance from the centre of the observed
locations increases towards the periphery.
The choice of grid-cell size can have a substantial influence on a grid-based home-range estimate. Small cells provide greater spatial resolution but can fragment the observed home range into isolated cells, whereas larger cells produce more spatially connected home ranges at the cost of spatial detail.
We therefore recommend the following general workflow:
The following example uses the macaques dataset included
with the package.
We first obtain a general representation using 1-ha cells:
#>
#> ----------------------------------------
#> Grid-based home-range analysis: Macaques
#> ----------------------------------------
#> Locations: 16478
#> Cell shape: hex
#> Cell area: 10000 square meters
#> Fill method: locations
#> Used cells: 441
#> Home-range area: 4410000 square meters
#> Home-range area: 441 ha
#> ----------------------------------------
This provides an initial view of the spatial extent of the home range and the distribution of locations among grid cells.
At this stage, the objective is not necessarily to select the final cell size, but to explore the spatial structure of the data.
Depending on the movement ecology of the species and the scale of the study, some occupied cells may appear as isolated areas separated from the main home range. These may represent genuine, repeatedly used peripheral or salient areas, or they may result from the spatial resolution being too fine relative to the movement scale of the animal.
Importantly, a GPS location should not necessarily be interpreted as an isolated point in space. A location represents an observation of an animal whose use of the surrounding landscape extends beyond the exact recorded coordinate. Increasing the cell size can therefore provide a more spatially coherent representation of the area used by the animal.
This motivates evaluating connectivity as a function of grid-cell size.
The function identifies the smallest tested cell area at which all occupied cells form a single connected component. This is, it identifies the smallest tested cell area at which the occupied cells form a spatially connected home range. To do this, it identifies groups of neighbouring occupied cells that touch each other and determines the largest contiguous group (or connected component). The proportion of occupied cells belonging to this largest group provides a measure of how spatially coherent the home range is at each grid resolution.
This provides a practical way of identifying a grid resolution that retains as much spatial detail as possible while producing a spatially coherent representation of the observed home range. For the macaque example, the analysis indicates that approximately 2.5-ha hexagons provide a connected representation of the home range.
This does not imply that 2.5 ha is a universally appropriate resolution. The appropriate resolution depends on the movement scale, sampling design and ecological characteristics of the study species.
Connectivity provides one criterion for selecting a resolution. We can also examine how the estimated home-range size changes as cell size increases:
hr_cell_size(
macaques,
min = 100,
max = 50000,
interval = 10000,
cell_shape = "hex",
title = "Grid-based home-range across cell sizes"
)For these macaque data, the relationship shows a noticeable change around 2.5 ha. For these macaque data, the relationship shows a noticeable change around 2.5 ha. Note also that larger cell sizes tend to overestimate total home-range area, particularly along the periphery, because occupied border cells include areas extending beyond the outermost locations. Thus, the choice of cell size can have an important effect on grid-based home-range estimates.
Together with the connectivity analysis, this provides support for selecting a 2.5-ha hexagonal grid as a reasonable resolution for the subsequent analysis.
The objective is not to identify a universally optimal cell size, but to make the choice explicit and empirically informed.
Even with an appropriate spatial resolution, a home-range estimate may be poorly characterized if too few locations have been collected.
We can use hr_rare() to examine how estimated home-range
size changes as locations are progressively added:
In this example, the home-range estimate approaches an asymptote at approximately 5,000 locations.
Because the dataset contains substantially more locations than this, the available sample appears sufficient to characterize the home range at the selected 2.5-ha resolution.
This step is particularly important because cell size and sampling effort are related: a finer grid requires sufficient observations to characterize the spatial structure at that resolution.
Having selected a 2.5-ha hexagonal grid, we can now estimate the final home range and visualize space-use intensity:
grid_hr(
macaques,
cell_area = 25000,
fill_by = "radial",
title = "Macaques",
low_colour = "grey90",
high_colour = "grey10"
)#>
#> ----------------------------------------
#> Grid-based home-range analysis: Macaques
#> ----------------------------------------
#> Locations: 16478
#> Cell shape: hex
#> Cell area: 25000 square meters
#> Fill method: radial
#> Used cells: 221
#> Home-range area: 5525000 square meters
#> Home-range area: 552.5 ha
#> ----------------------------------------
Here, the hexagons are shaded according to normalized space-use intensity, with lighter cells representing lower use and darker cells representing higher use.
With fill_by = “radial”, the spatial distribution of intensity is also considered in relation to the distance of each cell from the centre of the observed locations.
In this example, the map suggests greater space-use intensity near the centre of the home range, with intensity generally declining towards the periphery.
The same pattern can be represented explicitly as a radial profile:
The radial plot summarizes the relationship between distance from the centre of the home range and space-use intensity.
Thus, the map and radial plot provide complementary views of the same spatial structure:
This radial representation is one of the distinctive features of gridHR and provides a way of comparing the internal organization of home ranges independently of their absolute size or shape.