Plots geostrata argument from the strataPolygon on a basemap together with bathymetry

plotGeostrata(geostrata, plot = TRUE, ...)

Arguments

geostrata

A data frame. See the same argument in strataPolygon

plot

Logical indicating whether ggOceanMaps plot should be returned. If FALSE, the geostrata polygons are returned as an sf objected instead.

...

Additional parameters passed to basemap.

Value

If plot = TRUE a ggplot map, which can be assigned to an object and modified as any ggplot object. Otherwise an sfc.

Details

This function is useful for fitting geostrata visually on a map before running the time-consuming strataPolygon step. Can also be used to acquire geostrata as sf polygons

Author

Mikko Vihtakari (Institute of Marine Research)