Creates a static plot using ggplot2 that displays geographic polygons on a coastline base. Colors are assigned by groups (announcements/labels), not individual polygons.
plot_zones_static(
polygons,
coastline,
title,
colors,
show_legend = TRUE,
name_legend = NULL,
labels = NULL,
add_grid = TRUE,
theme = ggplot2::theme_minimal()
)
A ggplot object ready to be plotted.
List of polygons. Each polygon must contain a coords matrix with longitude and latitude columns.
Data frame with the coastline, with columns Long and Lat.
Main title of the plot.
Vector of colors to fill the polygons. If NULL, colors are automatically assigned by groups.
Logical. If TRUE, the legend is displayed.
Name of the legend (optional). If NULL, legend has no title.
Vector of labels for the polygons (optional).
Logical. If TRUE, adds a geographic grid to the plot.
ggplot2 theme to use.