Description Usage Arguments Value Note Author(s) Examples
View source: R/plot_functions.R
The guild_discards_fun
function returns a series of plots of discard rate and landings by fish category for an ecoregion.
1 2 3 |
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. |
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 "~/".
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.
Scott Large
1 2 3 4 | ## Not run:
guild_discards_fun("Greater North Sea Ecoregion", return_plot = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.