guild_discards_fun: Discard rate over time

Description Usage Arguments Value Note Author(s) Examples

View source: R/plot_functions.R

Description

The guild_discards_fun function returns a series of plots of discard rate and landings by fish category for an ecoregion.

Usage

1
2
3
guild_discards_fun(ecoregion, active_year = 2016, data_caption = TRUE,
  output_path = NULL, save_plot = FALSE, return_plot = TRUE,
  return_data = FALSE, file_name = NULL)

Arguments

ecoregion

ecoregion name, e.g. Greater North Sea Ecoregion

active_year

numeric of the stock database version (year). e.g., 2016

data_caption

print the data source as a caption, boolean.

output_path

path for output to live.

save_plot

logical to save plot.

return_plot

logical to return plot to current environment.

return_data

logical on returning a .csv of plotted data

file_name

name for the output.

Value

A ggplot2 object when return_plot is TRUE, html when dynamic is TRUE or .png when dynamic is FALSE. Output is saved as file_name in output_path. When file_name is NULL, the file name is the ecoregion. When output_path is NULL, the file is saved to "~/".

Note

Stocks are linked to ecoregions and fish categories via the ICES Stock database. Reference points are as published in ICES Stock Assessment Graphs database. In some cases, status relative to reference points may vary from published ICES advice when reported F or SSB are very close to reference points (e.g., F = 0.201 > F<sub>MSY</sub> = 0.20). There is an assumption that discard rates for biannual stocks and are consistent over the years that we don't provide new advice.

Author(s)

Scott Large

Examples

1
2
3
4
## Not run: 
guild_discards_fun("Greater North Sea Ecoregion", return_plot = TRUE)

## End(Not run)

ices-tools-prod/fisheryO documentation built on May 19, 2019, 8:22 a.m.