| fetch_app | R Documentation |
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.
fetch_app(fetch_data, title = NULL)
fetch_data |
Results from |
title |
Optional app title |
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
Launches a Shiny app (does not return)
if (interactive()) {
sites <- load_sites("my_sites.csv")
lake <- get_lake_boundary(sites)
results <- fetch_calculate(sites, lake)
fetch_app(results)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.