A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

geohabnet

Enable users to visualise a habitat connectivity risk index for agriculture using their own
https://github.com/garrettlab/habitatconnectivity

Category: Biosphere
Sub Category: Conservation and Restoration

Keywords

agriculture crop geographical-information-system geography network-analysis networks r surveillance

Last synced: about 21 hours ago
JSON representation

Repository metadata

geohabnet R package

README.md


geohabnet

This package expands on Xing et al
(2021)
.
It adds capabilities to customize parameter values using functions and
shows the results of habitat connectivity risk index in the form of
plots. The goal of geohabnet is to enable users to visualize a habitat
connectivity risk index using their own parameter values. The risk
analysis outputs 3 maps -

  1. Mean habitat connectivity (based on a habitat connectivity index
    defined by the user)

  2. Difference in habitat connectivity

  3. Variance in habitat connectivity

This package currently supports crop maps sourced from
geodata::monfredaCrops() and geodata::spamCrops(). This analysis
produces the 3 maps listed above. There are multiple ways in which
functions can be used - generate the final outcome and then the
intermediate outcomes for more sophisticated use cases. The vignettes
provide several examples. The output values are propagated to other
functions for performing operations such as distance matrix calculation.
The values are set in parameters.yaml and it can be accessed using
get_parameters(). See the usage below.

Installation

Package can either be installed from CRAN:

install.packages("geohabnet")
#> Installing package into '/private/var/folders/r5/zggvft9d3yn5kh51wqp78rd00000gn/T/RtmpBU77e3/temp_libpath4f5365f57439'
#> (as 'lib' is unspecified)
#> 
#> The downloaded binary packages are in
#>  /var/folders/r5/zggvft9d3yn5kh51wqp78rd00000gn/T//RtmpBqmkXl/downloaded_packages

or the source version of package can be installed from
GitHub with:

if (!require("devtools")) {
  install.packages("devtools")
}

devtools::install_github("GarrettLab/HabitatConnectivity", subdir = "geohabnet")

geohabnet Example

library(geohabnet)

param_file <- geohabnet::get_parameters()
# now edit the file
geohabnet::set_parameters(new_params = param_file)

Run the analysis using -

geohabnet::sensitivity_analysis()

parameters.yaml stores the parameter and its values. It can be
accessed and set using get_parameters() and set_parameters()
respectively. By default risk analysis is run on global index, for which
scales are present in global_scales() .

Refer to help using ?geohabnet::fun or help(geohabnet::fun)

Refer to article Analyzing risk index using cropland
connectivity

for more elaborate description and usages of functions in this package.


Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 7 days ago

Total Commits: 363
Total Committers: 4
Avg Commits per committer: 90.75
Development Distribution Score (DDS): 0.102

Commits in past year: 23
Committers in past year: 2
Avg Commits per committer in past year: 11.5
Development Distribution Score (DDS) in past year: 0.174

Name Email Commits
Krishna Keshav k****v@u****u 326
AaronPlex 7****x 34
ricardoi r****a@u****u 2
Garrett Lab | University of Florida 4****b 1

Committer domains:


Issue and Pull Request metadata

Last synced: 2 days ago

Total issues: 64
Total pull requests: 119
Average time to close issues: about 2 months
Average time to close pull requests: 5 days
Total issue authors: 5
Total pull request authors: 3
Average comments per issue: 0.63
Average comments per pull request: 0.57
Merged pull request: 110
Bot issues: 0
Bot pull requests: 0

Past year issues: 8
Past year pull requests: 6
Past year average time to close issues: 21 days
Past year average time to close pull requests: 3 days
Past year issue authors: 3
Past year pull request authors: 2
Past year average comments per issue: 0.75
Past year average comments per pull request: 0.17
Past year merged pull request: 3
Past year bot issues: 0
Past year bot pull requests: 0

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/garrettlab/habitatconnectivity

Top Issue Authors

  • krishnakeshav (47)
  • AaronPlex (13)
  • GarrettLab (2)
  • ricardoi (1)
  • Romaric20 (1)

Top Pull Request Authors

  • krishnakeshav (114)
  • AaronPlex (4)
  • GarrettLab (1)

Top Issue Labels

  • enhancement (32)
  • documentation (15)
  • bug (15)
  • help wanted (11)
  • good first issue (6)
  • question (5)

Top Pull Request Labels

  • bug (43)
  • enhancement (43)
  • documentation (29)
  • help wanted (7)
  • question (4)

Package metadata

cran.r-project.org: geohabnet

Geographical Risk Analysis Based on Habitat Connectivity

  • Homepage: https://garrettlab.github.io/HabitatConnectivity/
  • Status: removed
  • Documentation: http://cran.r-project.org/web/packages/geohabnet/geohabnet.pdf
  • Licenses: GPL-3
  • Latest release: 2.1.2 (published about 1 year ago)
  • Last Synced: 2025-04-26T12:02:45.604Z (2 days ago)
  • Versions: 7
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 281 Last month
  • Rankings:
    • Stargazers count: 25.658%
    • Forks count: 28.043%
    • Dependent packages count: 29.002%
    • Dependent repos count: 36.947%
    • Average: 41.308%
    • Downloads: 86.89%
  • Maintainers (1)

Score: 9.972640411224445