plot_effort_map: Returns an map of the ecoregion and the divisions included in...

Description Usage Arguments Value Note See Also Examples

View source: R/plot_effort_map.R

Description

Returns an map of the ecoregion and the divisions included in it

Usage

1
plot_effort_map(effort, ecoregion)

Arguments

effort

a dataframe of effort data with a WKT columns (see notes)

ecoregion

a dataframe output of load_ecoregion( ... )

Value

A ggplot object

Note

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

See Also

plot_ecoregion_map plots ICES areas and ecoregion.

Examples

 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)

ices-tools-prod/icesFO documentation built on Aug. 28, 2020, 2:33 p.m.