birdflowr

BirdFlow R Package

https://github.com/birdflow-science/birdflowr

Science Score: 59.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README
  • Academic publication links
    Links to: biorxiv.org
  • Committers with academic emails
    3 of 9 committers (33.3%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (17.4%) to scientific vocabulary

Keywords

bird-migration birds ebird ecology r-package

Keywords from Contributors

movement-ecology
Last synced: 6 months ago · JSON representation

Repository

BirdFlow R Package

Basic Info
Statistics
  • Stars: 19
  • Watchers: 5
  • Forks: 4
  • Open Issues: 24
  • Releases: 0
Topics
bird-migration birds ebird ecology r-package
Created over 3 years ago · Last pushed 6 months ago
Metadata Files
Readme Changelog Contributing License

README.Rmd

---
output: github_document
---



```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%", 
  dev = "ragg_png",
  dpi = 100
)

set.seed(1)
```

# BirdFlowR 


  [![R-CMD-check](https://github.com/birdflow-science/BirdFlowR/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/birdflow-science/BirdFlowR/actions/workflows/R-CMD-check.yaml)
[![Codecov test coverage](https://codecov.io/gh/birdflow-science/BirdFlowR/branch/main/graph/badge.svg)](https://app.codecov.io/gh/birdflow-science/BirdFlowR?branch=main)




An R package to predict changes in bird distributions and generate synthetic 
migration routes based on BirdFlow models.

This package is under development and not yet formally released. Function names
and arguments may change.


## Installation

Install just the package:
```{r install, eval = FALSE}
if(!require("remotes"))
  install.packages("remotes") 
remotes::install_github("birdflow-science/BirdFlowR")
```
Or to install with example data and vignette:

```{r install everything, eval = FALSE}
installed <- rownames(installed.packages())
if(!"remotes" %in% installed)
  install.packages("remotes")
if(!"rnaturalearthdata" %in% installed)
  install.packages("rnaturalearthdata")
remotes::install_github("birdflow-science/BirdFlowModels")
remotes::install_github("birdflow-science/BirdFlowR", build_vignettes = TRUE)
```
See `vignette("Installation")` for troubleshooting and more installation 
options.

## Usage 

The two primary functions are `predict()` to project distributions and 
`route()` to generate synthetic routes.  

`route_migration()` is a wrapper to `route()` which automates sampling
locations from the a distribution for the start of the migration and setting 
the start and end dates to route for the migration window. We can use it to 
create synthetic routes for a species.
```{r examples}
library(BirdFlowR)
library(BirdFlowModels)

bf <- amewoo 

species(bf)

# Generate routes for the prebreeding migration 
rts <- route(bf, n = 10, season = "prebreeding")

# Plot routes
plot_routes(rts, bf)

```

Visualize the movement in the BirdFlow model for a timestep.

```{r movement_vectors}

plot_movement_vectors(bf, start = 12)

```


## Learn more

- `vignette("BirdFlowR")` has a longer introduction to the package, and how to
  use `predict()` and `route()` to project bird distributions and movement. 
- `vignette("Installation")` for detailed installation instructions.
- `vignette("Preprocess")` covers downloading and formatting data for model 
  fitting with `preprocess_species()`, importing fitted models with 
  `import_birdflow()`, and reducing model size with `sparsify()`.   
- Read the paper:
  - [BirdFlow: Learning Seasonal Bird Movements from Citizen Science Data](https://www.biorxiv.org/content/10.1101/2022.04.12.488057v1) Miguel Fuentes, Benjamin M. Van Doren, Daniel Fink, Daniel Sheldon bioRxiv 2022.04.12.488057; doi: https://doi.org/10.1101/2022.04.12.488057


Owner

  • Name: birdflow-science
  • Login: birdflow-science
  • Kind: organization

GitHub Events

Total
  • Issues event: 25
  • Watch event: 11
  • Delete event: 4
  • Issue comment event: 55
  • Push event: 21
  • Pull request review event: 7
  • Pull request review comment event: 10
  • Pull request event: 13
  • Fork event: 2
  • Create event: 6
Last Year
  • Issues event: 25
  • Watch event: 11
  • Delete event: 4
  • Issue comment event: 55
  • Push event: 21
  • Pull request review event: 7
  • Pull request review comment event: 10
  • Pull request event: 13
  • Fork event: 2
  • Create event: 6

Committers

Last synced: 7 months ago

All Time
  • Total Commits: 374
  • Total Committers: 9
  • Avg Commits per committer: 41.556
  • Development Distribution Score (DDS): 0.324
Past Year
  • Commits: 149
  • Committers: 4
  • Avg Commits per committer: 37.25
  • Development Distribution Score (DDS): 0.369
Top Committers
Name Email Commits
Ethan Plunkett e****n@p****m 253
chenyangkang c****4@o****m 94
Dave Slager s****r 18
Adriaan Dokter a****r@g****m 4
Luke Ruud 1****d 1
Daniel Sheldon s****n@c****u 1
Benjamin Van Doren 8****n 1
yc85_illinois_edu y****u@l****u 1
plunkett_umass_edu p****u@c****u 1

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 85
  • Total pull requests: 96
  • Average time to close issues: 2 months
  • Average time to close pull requests: 3 days
  • Total issue authors: 6
  • Total pull request authors: 5
  • Average comments per issue: 1.68
  • Average comments per pull request: 0.44
  • Merged pull requests: 89
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 16
  • Pull requests: 17
  • Average time to close issues: 3 months
  • Average time to close pull requests: 19 days
  • Issue authors: 4
  • Pull request authors: 3
  • Average comments per issue: 1.44
  • Average comments per pull request: 1.47
  • Merged pull requests: 12
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • ethanplunkett (54)
  • slager (16)
  • chenyangkang (7)
  • adokter (1)
  • dsheldon (1)
  • rsmiller74 (1)
Pull Request Authors
  • ethanplunkett (93)
  • slager (9)
  • chenyangkang (5)
  • adokter (2)
Top Labels
Issue Labels
enhancement (8) bug (2) help wanted (1)
Pull Request Labels

Dependencies

.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v3 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/test-coverage.yaml actions
  • actions/checkout v3 composite
  • actions/upload-artifact v3 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
DESCRIPTION cran
  • Matrix * imports
  • dplyr * imports
  • lubridate * imports
  • magrittr * imports
  • progress * imports
  • rhdf5 * imports
  • rlang * imports
  • rnaturalearth * imports
  • sf * imports
  • stringr * imports
  • terra * imports
  • BirdFlowModels * suggests
  • auk * suggests
  • covr * suggests
  • ebirdst * suggests
  • knitr * suggests
  • methods * suggests
  • rmarkdown * suggests
  • rnaturalearthdata * suggests
  • testthat >= 3.0.0 suggests