Description Usage Arguments Value Note See Also Examples
View source: R/plot_effort_map.R
Returns an map of the ecoregion and the divisions included in it
1 | plot_effort_map(effort, ecoregion)
|
effort |
a dataframe of effort data with a WKT columns (see notes) |
ecoregion |
a dataframe output of load_ecoregion( ... ) |
A ggplot object
The effort data.frame is conveted to an sf object for plotting and is expeted to have a Well Known Text column containing polygons of c-squares
plot_ecoregion_map
plots ICES areas and ecoregion.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
ecoregion <- load_ecoregion("Baltic Sea")
effort <- icesVMS::get_effort_map("Baltic Sea")
# convert to sf
effort <- sf::st_as_sf(effort, wkt = "wkt", crs = 4326)
# select gears to plot
gears <- c("Static", "Midwater", "Otter", "Demersal seine")
effort <- effort[effort$fishing_category_FO %in% gears,]
plot1 <- plot_effort_map(effort, ecoregion)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.