get_nhdplus_interactively {gwavr}R Documentation

Get NHDPlus Interactively

Description

This function allows the user go get NHDPlus realizations interactively with a shiny app.

Usage

get_nhdplus_interactively(
  ns = "hydro-ui",
  viewer = shiny::paneViewer(),
  title = "NHDPlus",
  ...
)

Arguments

ns

string name for the Shiny namespace to use. The ns is unlikely to require a change.

viewer

function for the viewer. See Shiny viewer. NOTE: when using browserViewer(browser = getOption("browser")) to open the app in the default browser, the browser window will automatically close when closing the app (by pressing "done" or "cancel") in most browsers. Firefox is an exception. See Details for instructions on how to enable this behaviour in Firefox.

title

string to customize the title of the UI window. The default is "NHDPlus".

...

other arguments to leafletOutput() in module.

Value

A list of sf objects that the user collected during shiny session.

Note

The picker list has several options right now: NHDPlus Catchments, NHDPlus Flowlines, NHDPlus Waterbodies, NHDPlus Outlet, HUC 2-12, NWIS Site.

Examples


if(interactive()){
nhdplus_data <- get_nhdplus_interactively()
}


[Package gwavr version 0.3.1 Index]