format_final_year_for_map_iphc | R Documentation |
Takes the final year of data to get into the correct format to fit into plotting functions for gfsynopsis report.
format_final_year_for_map_iphc(set_counts, final_year)
set_counts |
species-specific set-level data from |
final_year |
year for which to plot the set-by-set catch rates |
tibble in the format required by the plotting function, with a row of NA's if the data are not present.
## Not run:
# If already loaded data via gfsynopsis then just, for any species,
format_final_year_for_map(
readRDS("report/data-cache/iphc/china-rockfish.rds")$set_counts)
# Else to load from scratch:
set_counts <- get_all_iphc_set_counts("yelloweye rockfish")
format_final_year_for_map(set_counts, 2017)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.