Ecological Informatics (May 2025)

net.raster: Interaction network metrics for raster data

  • Cynthia Valéria Oliveira,
  • Gabriela Alves-Ferreira,
  • Flávio Mariano Machado Mota,
  • Daniela Custódio Talora,
  • Neander Marcel Heming

Journal volume & issue
Vol. 86
p. 102969

Abstract

Read online

The interaction among species from different trophic levels is essential for ecosystem functioning and the use of bipartite networks is often useful for improving our understanding of multiple ecological processes, such as seed dispersal, pollination, and predation. Still, we are just paving ways to better understand spatial variation and macroecological aspects of interaction diversity. Here we introduce net.raster, an R package to calculate network and species-level metrics using rasterized presence-absence data and bipartite interaction networks as input, aiming to place species interaction studies into a spatial perspective. First, we focus on the spatialization of the functions and arguments from the bipartite R package using the terra package. Then, we enhance the visualisation of interaction patterns across space by allowing a raster layer of species interactions in addition to species distribution models (SDM). To date, all available packages that compute mutualistic network metrics rely only on matrices, or edge lists and network graphs derived from them. The net.raster package applies the calculations for each cell of a raster, allowing users to extrapolate known interactions across space and to visualise spatial patterns of bipartite network descriptors. The resulting rasters of interaction metrics are based mainly on the geographical extrapolation of interaction records between pairs of species and the resulting calculations use co-occurrence as a proxy for an interaction between species. Like other network analysis packages, net.raster allows users to calculate network topography indices using: a) the entire web, b) selecting the lower or upper level of each group, or c) selecting each species, choosing both levels or one level of interest at a time. Thus, the spatial processing and visualisation of fundamental bipartite networks provided by net.raster may fill a current gap in macroecological and biogeographical research and enable the understanding of the spatial variation of interaction networks. It also may open other questions in the macroecological and biogeographical study of networks, inspiring new insights into the conservation of important ecosystem services, such as seed dispersal and pollination.

Keywords