get_noaatlas_interactively: Get National Oceanic and Atmospheric Administration (NOAA)...

View source: R/noaatlas.R

get_noaatlas_interactivelyR Documentation

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".

Value

A data.frame.

Examples


if(interactive()){
noaatlas_data <- get_noaatlas_interactively()
}

gwavr documentation built on April 4, 2025, 6:13 a.m.