get_usgs_iv_interactively | R Documentation |
This function allows the user to select United States Geologic Survey (USGS) stations
and get back instantaneous flow values based on control number of days from now
. It uses the USGS
Water Services to get the values as well as the USGS Dashboard to get current conditions (circle markers on map).
get_usgs_iv_interactively(
ns = "usgsiv-ui",
viewer = shiny::paneViewer(),
title = "Get USGS Instantaneous Flow Values",
...
)
ns |
|
viewer |
|
title |
|
... |
other arguments to |
Steps
Select the sites you want to retrieve.
Make sure you have the right days.
When finished, press 'done' and sites instantaneous flow values will be saved to a data.frame in local environment.
A data.frame that contains flow values based on the station(s) selected during shiny session.
You can select multiple stations but the number of days from now
control
will take the final number when you select the done
button. The information from the hover
details is not included in
the data.frame that is returned, e.g. rate of change, percentile description.
if(interactive()){
iv_usgs <- get_usgs_iv_interactively()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.