A tibble of connected patch areas (one row per patch)
that also carries the species and interpatch_distance the analysis
was run with as attributes. habitat_connectivity() builds one of these
internally for each call; retrieve it from the returned connectivity
summary with patch_sizes().
Usage
new_patch_size_tbl(data, species, interpatch_distance, res = NA_real_)
patch_size_tbl(data, species, interpatch_distance, res = NA_real_)Arguments
- data
Data frame of connected patches. Must contain an
areacolumn.- 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.
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().