Skip to content

Using the "landscapemetrics" R package to calculate metrics inside 5 km buffers.

Notifications You must be signed in to change notification settings

Lucas-a-pereira/landscape-metrics-with-R

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

landscape-metrics-with-R

In this script, forest cover maps were used as inputs for the calculation of five landscape metrics using the R package "landscapemetrics", namely:

  1. percentage of landscape (landscape composition - proportional abundance of the class "Forest Cover")
  2. number of patches (landscape configuration - aggregation metric (subdivision))
  3. edge density (landscape configuration - aggregation metric (subdivision))
  4. splitting index (landscape configuration - aggregation metric (subdivision))
  5. mean of patch area (landscape composition - area and edge metric)

Each map represents the location of a primate community and forest cover around that community within a 5 km radius. As I had many communities and landscapes the calculation process was automated in a for loop to determine the metric values at different radii (1000m to 5000m every 200m). The script ends by exporting a .csv with the values of each metric, in each of the different radii for each of the communities. It also exports a .png image with the corresponding map and metric values for that map and radius like this one below:

alt text

"co" is the community id; "bf" is the buffer radius; "pl" is percentage of landscape; "np" is number of patches; "ed" is edge density; "si" is splitting index; "patch" is mean of patch area.

About

Using the "landscapemetrics" R package to calculate metrics inside 5 km buffers.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages