View source: R/test_metric_distance.R
test_metric_distance | R Documentation |
Test the ECA or ProtConn metrics using multiple dispersal distances
test_metric_distance(
nodes,
attribute = NULL,
distance1 = NULL,
distance2 = NULL,
distance3 = NULL,
distance4 = NULL,
metric = "IIC",
probability = NULL,
distance_thresholds,
region = NULL,
LA = NULL,
transboundary = NULL,
area_unit = "ha",
groups = 3,
write = NULL,
intern = TRUE
)
nodes |
Object of class |
attribute |
|
distance1 |
|
distance2 |
|
distance3 |
|
distance4 |
|
metric |
A |
probability |
A |
distance_thresholds |
A |
region |
object of class |
LA |
|
transboundary |
|
area_unit |
|
groups |
|
write |
|
intern |
|
Correa Ayram, C. A., Mendoza, M. E., Etter, A., & Pérez Salicrup, D. R. (2017). Anthropogenic impact on habitat connectivity: A multidimensional human footprint index evaluated in a highly biodiverse landscape of Mexico. Ecological Indicators, 72, 895–909. https://doi.org/10.1016/j.ecolind.2016.09.007
## Not run:
library(Makurhini)
library(sf)
data("list_forest_patches", package = "Makurhini")
data("study_area", package = "Makurhini")
Max_attribute <- unit_convert(st_area(study_area), "m2", "ha")
test_metric_distance(nodes = list_forest_patches[[1]],
distance1 =list(type= "centroid"),
distance2 =list(type= "edge"),
attribute = NULL, area_unit = "ha",
LA = Max_attribute ,
distance_thresholds = seq(10000,100000, 10000),
groups = 0)
load(system.file("extdata", "Protected_areas.rda",
package = "Makurhini", mustWork = TRUE))
data("Ecoregions", package = "Makurhini")
region <- Ecoregions[1,]
test_metric_distance(nodes = Protected_areas,
distance1 =list(type= "centroid"),
distance2 =list(type= "edge", keep = 0.05),
metric = "ProtConn", probability = 0.5,
area_unit = "ha",
region = region, transboundary = 50000,
distance_thresholds = seq(10000,100000, 10000))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.