R package that provides functions to easily interact with NOAA’s DisMAP (Distribution Mapping and Analysis Portal) APIs
Overview
DisMapR is an R package that provides functions to easily interact with NOAA’s NOAA’s DisMAP - Distribution Mapping and Analysis Portal APIs listed here:
This package allows users to get and plot:
-
Surveys
Survey location points -
Rasters
Rasters of interpolated biomass distribution -
Indicators
Indicators of overall distributional shifts in center of gravity by depth and location
Installation
# install required R packages
install.packages("RcppSimdJson")
install.packages("arcgis", repos = "https://r-arcgis.r-universe.dev")
# install dismapr R package from Github
devtools::install_github("bbest/dismapr")Usage
See Getting Started
Disclaimers
URLs for the DisMAP services may change as new data releases become available. Check the DisMAP InPort page for the most up-to-date URLs.
Developer
The package is currently in development and may not include all features or be fully tested.
History
The initial script DisMAP_Data_Download_API.R was written by Melissa Karp, adapted by Claude.ai into an initial R package (see chat.md), then modified by Ben Best for expanded and working functionality.
Commands
Common tasks for package development include:
# update documentation after modifying any R/*.R files
devtools::document()
# preview website
pkgdown::build_site()Documentation
Note that the documentation website https://bbest.github.io/dismapr is rendered from source by this Github Action:
Next
Potential next steps to do:
-
- static:
- map:
- vector: visualise sf objects with ggplot2
- raster:
geom_raster()with ggplot2 - basemap:
- map:
- interactive:
- plot:
plotly::ggplotly() - map:
leaflet
- plot:
- static:
References
- NOAA DisMAP portal: https://apps-st.fisheries.noaa.gov/dismap/DisMAP.html
- Technical documentation: https://www.fisheries.noaa.gov/inport/item/66799