Skip to contents

Main functions

habitat_connectivity()
Calculate habitat connectivity using terra
summarise_connectivity()
Summarise connectivity metrics
compare_connectivity()
Compare the connectivity of two scenarios
compare_scenarios()
Compare several scenarios against one baseline
habitat_connectivity_comparison()
Compare habitat connectivity of a scenario against a baseline
habitat_connectivity_scenarios()
Compare several scenarios against one baseline, starting from layers
effective_mesh_size()
Calculate effective mesh size
connectivity_probability()
Calculate connectivity probability
mean_patch_size()
Calculate mean patch size
n_patches()
Count number of habitat patches
total_habitat_area()
Calculate total habitat area
habitat_connectivity_full()
Calculate habitat connectivity with visualization data
connectivity_report_data()
Everything one connectivity analysis produces
scenario_layer()
The layer a scenario changed

Display

connectivity_display()
Prepare a result for display
round_by() format_by()
Apply the rounding a display describes
display_ids()
Which display columns identify a row rather than measure it

Patch connectivity class

patch_sizes()
Extract the per-patch tables from a connectivity object
pc_species() pc_patches() pc_res() pc_interpatch_distance()
Metadata from a patch_size_tbl object
new_patch_size_tbl() patch_size_tbl()
A set of connected habitat patches
format_resolution()
Format a raster resolution for reading

Raster functions

create_barrier_mask()
Create barrier mask
drop_habitat_under_barrier()
Remove habitat under barriers
habitat_buffer()
Buffer habitat raster
fragment_habitat()
Fragment habitat
assign_patches_to_fragments()
Assign patches to fragments
add_patch_area()
Add patch area layer
aggregate_connected_patches()
Aggregate connected patch areas

Vector (shapefile) functions

prepare_rasters()
Prepare habitat and barrier rasters
read_geometry()
Read shapefile geometry
sf_habitat_buffer()
Buffer habitat by distance
sf_fragment_habitat()
Fragment habitat along barriers
sf_drop_habitat_under_barrier()
Remove habitat underneath barriers
sf_assign_patches_to_fragments()
Assign habitat patches to fragment IDs
sf_add_patch_area()
Add patch area column
sf_aggregate_connected_patches()
Aggregate connected patch areas
sf_habitat_connectivity()
Calculate habitat connectivity

Visualisation

gg_barrier_habitat_interpatch_dist()
Plot barrier, habitat, and interpatch distance layers
gg_layer()
Plot one layer on its own
plot_barrier_habitat_interpatch_dist()
Save barrier habitat interpatch distance plot
plot_connectivity()
Plot connectivity metrics across interpatch distances
plot_patches()
Plot connected habitat patches

Data sources

example_habitat() example_barrier_shp() example_barrier() example_barrier_scenario()
Lizard Habitat and Barrier Data from Melbourne.
example_wren_habitat() example_wren_habitat_scenario() example_wren_barrier() example_wren_barrier_scenario()
Fair Wren Habitat, Barrier, and scenario Data from City of Knox.
lizard_areas_connected
Connected habitat patch areas for Blue-tongued Lizard

Downloads and reporting

write_connectivity_assets()
Write the downloadable assets for one analysis
zip_connectivity_assets()
Write the downloadable assets as a single zip
zip_connectivity_reports()
Write the reports as a single zip
connectivity_file_stem()
The name to give a download: species and date
generate_connectivity_report()
Render a connectivity report
write_connectivity_report()
Write a connectivity report's source, so you can render it yourself
render_connectivity_report()
Render a connectivity report's source
write_report_data() read_report_data()
Save and reload a connectivity analysis
quarto_available()
Is the Quarto command line tool installed?

General

clean()
Clean any spatial data layer (shape file)
empty_grid()
Create Empty terra raster grid
onto_grid()
Put a layer on a grid, whichever form it arrives in
col2hex()
Convert color name to hexadecimal
urbio_colours()
The urbioconnect map colours
urbio_figure_size()
The default figure size for urbioconnect maps and plots

Shiny app

run_connectivity_app()
Launch the Connectivity Shiny App