get_basin_interactively {gwavr} | R Documentation |
Get Watershed Basin Interactively
Description
This function allows the user delineate watershed basins interactively with a
shiny app. It uses the elevatr package for DEM and whitebox package to delineate the watershed.
Usage
get_basin_interactively(
ns = "basin-ui",
viewer = shiny::paneViewer(),
title = "Delineate Basin",
...
)
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 "Delineate Basin".
|
... |
other arguments to leafletOutput() in module.
|
Value
A list of sf objects that the user collected during shiny session.
Examples
if(interactive()){
nhdplus_data <- get_basin_interactively()
}
[Package
gwavr version 0.2.0
Index]