get_noaatlas_interactively: Get National Oceanic and Atmospheric Administration (NOAA) Atlas 14 Interactively
Description
This function uses the National Oceanic and Atmospheric Administration (NOAA) Atlas 14 API to allow the user to visually
select a location (point) to get numerous precipitation-frequency statistics.
Usage
get_noaatlas_interactively(
map = NULL,
ns = "noaatlas-ui",
viewer = shiny::paneViewer(),
title = "NOAA Atlas 14"
)
Arguments
- map
A background leaflet or mapview map to be used for editing. If NULL a blank mapview canvas will be provided.
- 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 "NOAA Atlas 14".
Examples
Run this code
if(interactive()){
noaatlas_data <- get_noaatlas_interactively()
}
Run the code above in your browser using DataLab