Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joshualerickson/gwavr
Get Water Attributes Visually in R (gwavr)
https://github.com/joshualerickson/gwavr
Last synced: 3 months ago
JSON representation
Get Water Attributes Visually in R (gwavr)
- Host: GitHub
- URL: https://github.com/joshualerickson/gwavr
- Owner: joshualerickson
- License: other
- Created: 2021-12-20T16:24:02.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-10T22:00:36.000Z (6 months ago)
- Last Synced: 2024-06-11T17:14:09.866Z (5 months ago)
- Language: R
- Homepage:
- Size: 4.42 MB
- Stars: 17
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
- open-sustainable-technology - gwavr - Allows the user to point and click on areas within the United States and get back hydrological data, e.g. flowlines, catchments, basin boundaries, comids, etc. (Hydrosphere / Ocean and Hydrology Data Access)
README
---
output: github_document
---```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```# gwavr
[![R-CMD-check](https://github.com/joshualerickson/gwavr/workflows/R-CMD-check/badge.svg)](https://github.com/joshualerickson/gwavr/actions)
[![CRAN status](https://www.r-pkg.org/badges/version/gwavr)](https://CRAN.R-project.org/package=gwavr)
[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)The goal of gwavr (Gee-waver) is to Get Water Attributes Visually in R (gwavr). This allows the user to point and click on areas within the United States and get back hydrological data, e.g. flowlines, catchments, basin boundaries, comids, etc. Most of the heavy lifting is done by the [{nhdplusTools}](https://github.com/USGS-R/nhdplusTools) (much thanks) as well as the [{leaflet}](https://github.com/rstudio/leaflet) extensions and all this package does is wrap them into a app. Enjoy!
## Installation
You can install `gwavr` from CRAN:
```{r, eval = F}
install.packages('gwavr')
```To install the development version of the `gwavr` package, you can
install directly from [GitHub](https://github.com/):``` r
# install.packages("devtools")
devtools::install_github("joshualerickson/gwavr")
```## Contributions
Contributions are welcome!
## Current Functionality
There are a handful of functions right now that can help with getting water data visually: `get_nhdplus_interactively()`, `get_nldi_interactively()`, `get_basin_interactively()`, `get_streamnetwork_interactively()`, `get_usgs_iv_interactively()`, `get_usgs_dv_interactively()`. Please read the manual for more information on how to use these functions.
## Example
This is a basic example which shows you how to solve a common problem: getting water data without knowing the exact lat, lon via a shiny application.
```{r example, eval=F}
library(gwavr)
## basic example codenhdplus_data <- get_nhdplus_interactively()
## or for NLDI
nldi_data <- get_nldi_interactively()
```## Video