eez | R Documentation |
This function calculates the Exclusive Economic Zone (EEZ) boundary for the Azores by buffering each island by a specified distance (default 200 nautical miles) and merging the resulting buffers to create a single EEZ polygon.
eez(crs = laea_azores_proj(), distance = 200)
crs |
Character or CRS object. The target coordinate reference system
(CRS) for the EEZ output. Defaults to |
distance |
Numeric. The buffer distance in nautical miles (NM) around
each island. Defaults to |
The EEZ is defined as the area 200 nautical miles from the nearest baseline of each island. This function:
Buffers each island by distance × 1,852
meters (default: 370,400 meters).
Merges overlapping buffers into a single EEZ boundary.
Transforms the final EEZ to the specified crs
.
An sf
object representing the EEZ as a single POLYGON.
library(ggplot2)
ggplot() +
geom_sf(data = eez(), fill = NA, linewidth = 1, col = "gray") +
geom_sf(data = districts(), mapping = aes(fill = district), col = "white") +
guides(fill = "none")
# WGS 84 projection
ggplot() +
geom_sf(data = eez(crs = "EPSG:4326"), fill = NA, linewidth = 1, col = "gray") +
geom_sf(data = districts(crs = "EPSG:4326"), mapping = aes(fill = district), col = "white") +
guides(fill = "none")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.