Total fishery production (catch by species). Generates a figure for catches (x 1000 t) of the three main tunas: BET, SKJ and YFT.
fishery_production(
dataframe,
fishing_type = "ALL",
graph_type = "plot",
title = FALSE
)
data.frame expected. Csv or output of the function data_extraction, which must be done before using the fishery_production() function.
character expected. FSC, FOB or ALL. ALL by default.
character expected. plot, plotly, table or percentage. Plot by default.
TRUE or FALSE expected. False by default.
The function return ggplot R plot.
The input dataframe must contain all these columns for the function to work [see referentials]:
activity_date
species_code
flag
fleet
gear
school_code
ocean_label
total_catch_weight
Add these columns for an automatic title (optional):
country_code
ocean_code
vessel_type_code