
Create interactive map using leaflet (if available)
Source:R/11-visualization.R
create_interactive_map.RdCreate interactive maps with leaflet integration when available. Falls back gracefully when leaflet is not installed.
Usage
create_interactive_map(
spatial_data,
fill_variable = NULL,
popup_vars = NULL,
basemap = "terrain",
color_scheme = "viridis",
title = "Interactive Map",
verbose = FALSE
)Examples
if (FALSE) { # \dontrun{
# These examples demonstrate workflows with user's own spatial data
# Simple interactive point map
map <- create_interactive_map(study_sites, fill_variable = "ndvi_mean")
# Polygon map with custom basemap
map <- create_interactive_map(counties, fill_variable = "population",
basemap = "satellite")
} # }