Skip to content

Provides a set of tools to help the de-fragmentation process. It works by prioritizing the different sections of linear infrastructures (e.g. roads, power-lines) to increase the available amount of a given resource.

Notifications You must be signed in to change notification settings

FMestre1/gDefrag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gDefrag

gDefrag is an R package designed to assist in mitigating landscape fragmentation caused by linear infrastructures such as roads, railways, and pipelines. By representing landscapes as graphs, gDefrag enables users to identify and prioritise critical connections to enhance habitat connectivity.

Overview

Landscape fragmentation poses significant challenges to biodiversity conservation. gDefrag offers a graph-based approach to model and analyse habitat connectivity, allowing for the identification of key areas where mitigation efforts can be most effective.

The package is based on the work presented in:

Mestre, F., Ascensão, F., & Barbosa, A.M. (2019). gDefrag: A graph-based tool to help defragmenting landscapes divided by linear infrastructures. Ecological Modelling, 392, 1–5.
https://doi.org/10.1016/j.ecolmodel.2018.10.012

Features

  • Graph-Based Modeling: Simplifies landscapes into nodes (habitat patches) and edges (connections), facilitating connectivity analysis.
  • Prioritization Methods: Implements multiple criteria to rank potential corridors:
    • Value: Prioritizes connections between high-value habitat patches.
    • Betweenness: Identifies edges that serve as critical links within the network.
    • Integral Index of Connectivity (IIC): Assesses the impact of each edge on overall connectivity.
    • Area-Weighted Metric (AWM): Considers both habitat quality and size.
  • Shapefile Integration: Supports input and output of spatial data in shapefile format.

Thanks to Thais Ranzi (UFRGS, Brazil) for spotting a few bugs in the code.

Installation

To install the latest version from GitHub:

# Install devtools if not already installed 
install.packages("devtools")

# Install gDefrag from GitHub
devtools::install_github("FMestre1/gDefrag")

Example

#Load gDefrag
library(gDefrag)

# Create nodes
out1 <- node.creation(land_polyg = road_P, 
                      value_col = "frst_sm",
                      scale_nodes = 10, 
                      cex_labels = 1 
                      )
                      
# Create edges
out2 <- edge.creation(nodes = out1, 
                      land_polyg = road_P,
                      min_length = 0, 
                      min_pol_area = 0
                      )
                      
# Prioritize using "value"                      
out3 <- prioritize(nodes = out1, 
                   edges = out2, 
                   method = "value"
                   )

# Prioritize using "IIC"                      
 out4 <- prioritize(nodes = out1, 
                   edges = out2, 
                   method = "IIC"
                   )

About

Provides a set of tools to help the de-fragmentation process. It works by prioritizing the different sections of linear infrastructures (e.g. roads, power-lines) to increase the available amount of a given resource.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages