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