Package: urbioconnect 0.1.0.9000

Nicholas Tierney

urbioconnect: Urban Habitat Connectivity Analysis

Analyse and visualise habitat connectivity in urban landscapes, accounting for barriers and buffer distances. Includes Shiny app for interactive analysis and report generation. Based on methods developed by Kirk et al (2023) <doi:10.1016/j.mex.2022.101989>.

Authors:Nicholas Tierney [aut, cre], Holly Kirk [aut, cph]

urbioconnect_0.1.0.9000.tar.gz
urbioconnect_0.1.0.9000.zip(r-4.7)urbioconnect_0.1.0.9000.zip(r-4.6)urbioconnect_0.1.0.9000.zip(r-4.5)
urbioconnect_0.1.0.9000.tgz(r-4.6-any)urbioconnect_0.1.0.9000.tgz(r-4.5-any)
urbioconnect_0.1.0.9000.tar.gz(r-4.7-any)urbioconnect_0.1.0.9000.tar.gz(r-4.6-any)
urbioconnect_0.1.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
urbioconnect/json (API)

# Install 'urbioconnect' in R:
install.packages('urbioconnect', repos = c('https://urbio-ecology.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/urbio-ecology/urbioconnect/issues

Pkgdown/docs site:https://urbio-ecology.github.io

Datasets:

On CRAN:

Conda:

ecologyshinyspatial-analysisurban-ecologyquarto

4.73 score 15 scripts 46 exports 81 dependencies

Last updated from:4dc9903107. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK261
source / vignettesOK262
linux-release-x86_64OK254
macos-release-arm64OK249
macos-oldrel-arm64OK196
windows-develOK244
windows-releaseOK245
windows-oldrelOK248
wasm-releaseOK190

Exports:add_patch_areaaggregate_connected_patchesassign_patches_to_fragmentscleancol2hexcompare_connectivityconnectivity_probabilitycreate_barrier_maskdrop_habitat_under_barriereffective_mesh_sizeempty_gridexample_barrierexample_barrier_shpexample_habitatexample_wren_barrierexample_wren_barrier_scenarioexample_wren_habitatfragment_habitatgenerate_connectivity_reportgg_barrier_habitat_interpatch_disthabitat_bufferhabitat_connectivityhabitat_connectivity_fullmean_patch_sizen_patchesnew_patch_connectivitypatch_connectivitypc_interpatch_distancepc_patchespc_respc_speciesplot_barrier_habitat_interpatch_distplot_connectivityplot_patchesprepare_rastersread_geometryrun_connectivity_appsf_add_patch_areasf_aggregate_connected_patchessf_assign_patches_to_fragmentssf_drop_habitat_under_barriersf_fragment_habitatsf_habitat_buffersf_habitat_connectivitysummarise_connectivitytotal_habitat_area

Dependencies:base64encbslibcachemclassclassIntclicolorspacecommonmarkcpp11data.tableDBIdigestdplyre1071evaluatefarverfastmapfontawesomefsgenericsggplot2gluegtableherehighrhtmltoolshttpuvisobandjquerylibjsonliteKernSmoothknitrlabelinglaterlifecyclemagrittrMASSmemoisemimeotelpillarpkgconfigprocessxpromisesproxypspurrrquartoR6rappdirsRColorBrewerRcpprlangrmarkdownrprojrootrstudioapis2S7sassscalesscicosfshinysourcetoolsstringistringrterratibbletidyrtidyselecttidyterratinytexunitsutf8vctrsviridisLitewithrwkxfunxtableyaml

Getting started
Overview | The example data | The pipeline, step-by-step | Step 1: Create the barrier mask | Step 2: Remove habitat under barriers | Step 3: Buffer the habitat | Step 4: Fragment habitat along barriers | Step 5: Assign patch IDs | Step 6: Summarise patch areas | Computing connectivity metrics | Run the pipeline as a single step | Comparing multiple interpatch distances | Summary

Last update: 2026-06-10
Started: 2026-04-14

Using raster vs vector
Rasters and vectors | Running raster and vector models on the same data | Prepare the example data | Raster approach | Vector approach | Comparing raster vs vector | Summarising connectivity metrics | Which approach should you use? | Raster approach trade-offs | Vector approach trade-offs | Converting between raster and vector | Analysis step-by-step | References

Last update: 2026-06-10
Started: 2026-04-14

Using urbioconnect in a targets pipeline
Why use targets for connectivity analysis? | A minimal _targets.R | What each section does | Running and inspecting the pipeline | Running | Inspecting results | Visualising the dependency graph | Example workflows

Last update: 2026-06-10
Started: 2026-04-14

Interpatch distance and raster resolution
Interpatch distance | Buffering happens on a grid | A sub-cell radius does nothing - and habitat_buffer() warns | Why it matters: the same distance, two resolutions | Choosing a resolution | What about vector (sf) data?

Last update: 2026-06-05
Started: 2026-06-05

Readme and manuals

Help Manual

Help pageTopics
Add patch area layeradd_patch_area
Aggregate connected patch areasaggregate_connected_patches
Assign patches to fragmentsassign_patches_to_fragments
Clean any spatial data layer (shape file)clean
Convert color name to hexadecimalcol2hex
Compare measurements the connectivity of different scenarioscompare_connectivity compare_connectivity.default
Calculate connectivity probabilityconnectivity_probability
Create barrier maskcreate_barrier_mask
Remove habitat under barriersdrop_habitat_under_barrier
Calculate effective mesh sizeeffective_mesh_size
Create Empty terra raster gridempty_grid
Lizard Habitat and Barrier Data from Melbourne.example-lizard-data example_barrier example_barrier_shp example_habitat
Fair Wren Habitat, Barrier, and scenario Data from City of Knox.example-wren-data example_wren_barrier example_wren_barrier_scenario example_wren_habitat
Fragment habitatfragment_habitat
Generate Connectivity Reportgenerate_connectivity_report
Plot barrier, habitat, and interpatch distance layersgg_barrier_habitat_interpatch_dist
Buffer habitat rasterhabitat_buffer
Calculate habitat connectivity using terrahabitat_connectivity
Calculate habitat connectivity with visualization datahabitat_connectivity_full
Connected habitat patch areas for Blue-tongued Lizardlizard_areas_connected
Calculate mean patch sizemean_patch_size
Count number of habitat patchesn_patches
A set of connected habitat patchesnew_patch_connectivity patch_connectivity
Metadata from a 'patch_connectivity' objectpc-getters pc_interpatch_distance pc_patches pc_res pc_species
Save barrier habitat interpatch distance plotplot_barrier_habitat_interpatch_dist
Plot connectivity metrics across interpatch distancesplot_connectivity
Plot connected habitat patchesplot_patches
Prepare habitat and barrier rastersprepare_rasters
Read shapefile geometryread_geometry read_geometry.default read_geometry.sf
Launch the Connectivity Shiny Apprun_connectivity_app
Add patch area columnsf_add_patch_area
Aggregate connected patch areassf_aggregate_connected_patches
Assign habitat patches to fragment IDssf_assign_patches_to_fragments
Remove habitat underneath barrierssf_drop_habitat_under_barrier
Fragment habitat along barrierssf_fragment_habitat
Buffer habitat by distancesf_habitat_buffer
Calculate habitat connectivitysf_habitat_connectivity
Summarise connectivity metricssummarise-connectivity summarise_connectivity summarise_connectivity.default
Calculate total habitat areatotal_habitat_area