Skip to contents

The object returned by habitat_connectivity(): a tibble of connected patch areas that also carries the species and interpatch_distance the analysis was run with as attributes.

Usage

new_patch_connectivity(data, species, interpatch_distance, res = NA_real_)

patch_connectivity(data, species, interpatch_distance, res = NA_real_)

Arguments

data

Data frame of connected patches. Must contain an area column.

species

Character of length 1. Species the analysis was run for.

interpatch_distance

Numeric of length 1. The interpatch distance (m) the analysis used.

res

resolution in pixels - defaults to NA (numeric), not required for vector based approaches.

Value

A patch_connectivity object: a tibble with species and interpatch_distance attributes.

Details

Because it is a tibble subclass it behaves like a data frame directly – $, [, DT::datatable(), utils::write.csv() and ggplot2 all work without ceremony. Read the metadata back with pc_species() and pc_interpatch_distance().