plot_zones_interactive {Tivy} | R Documentation |
Generate interactive plot of polygons with leaflet
Description
Creates an interactive map using leaflet, showing polygons with popup information.
Usage
plot_zones_interactive(
polygons,
coastline,
title,
colors,
show_legend = TRUE,
labels = NULL,
base_layers = TRUE,
minimap = TRUE
)
Arguments
polygons |
List of polygons. Each must have fields such as coords, announcement, dates and coordinates. |
coastline |
Data frame with the coastline (columns Long and Lat). |
title |
Title to display at the top of the map. |
colors |
Vector of colors. If NULL, they are automatically assigned with RColorBrewer::brewer.pal. |
show_legend |
Logical. If TRUE, the layers control (legend) is displayed. |
labels |
Optional vector of names to display in the legend and map labels. |
base_layers |
Logical. If TRUE, includes base layers such as satellite and ocean maps. |
minimap |
Logical. If TRUE, displays a minimap in the lower right corner. |
Value
A leaflet object with the interactive map.
[Package Tivy version 0.1.0 Index]