fetch_app: Launch Interactive Fetch App

View source: R/shiny_app.R

fetch_appR Documentation

Launch Interactive Fetch App

Description

Launch a Shiny app for interactive exploration of fetch calculation results. Click on site markers to view fetch rays and detailed information. Click anywhere on the map to analyze a new point.

Usage

fetch_app(fetch_data, title = NULL)

Arguments

fetch_data

Results from fetch_calculate

title

Optional app title

Details

Requires the shiny, leaflet, and base64enc packages (suggested dependencies).

The app displays:

  • Interactive map with satellite imagery

  • Site markers colored by exposure category

  • Click markers to see fetch rays

  • Popup with rose diagram and metrics

  • Click anywhere on the map to analyze a new point

Value

Launches a Shiny app (does not return)

Examples

if (interactive()) {
  sites <- load_sites("my_sites.csv")
  lake <- get_lake_boundary(sites)
  results <- fetch_calculate(sites, lake)
  fetch_app(results)
}


lakefetch documentation built on March 20, 2026, 5:10 p.m.