-
Notifications
You must be signed in to change notification settings - Fork 2
/
README.Rmd
71 lines (47 loc) · 2.32 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# gwavr
<!-- badges: start -->
[![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)
<!-- badges: end -->
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()`, `get_noaatlas_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 code
nhdplus_data <- get_nhdplus_interactively()
## or for NLDI
nldi_data <- get_nldi_interactively()
```
<center>
## Video
<img src='inst/www/huc12.gif' class = 'center'>
</center>