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
)

Arguments

dataframe

data.frame expected. 'Csv' or 'output' of the function data_extraction, which must be done before using the fishery_production() function.

fishing_type

character expected. 'FSC', 'FOB' or 'ALL'. ALL by default.

graph_type

character expected. 'plot', 'plotly', 'table' or 'percentage'. Plot by default.

title

TRUE or FALSE expected. Title for plotly graph_type. False by default.

Value

The function return ggplot R plot.

Details

The input dataframe must contain all these columns for the function to work [see referentials]:


   activity_date | species_code | flag   | fleet  | gear | school_type | ocean_label | total_catch_weight
   -----------------------------------------------------------------------------------------
   1999-07-09    | 2            | France | France | PS   | FOB         | 1           |  119.
   1999-07-09    | 1            | France | France | PS   | FOB         | 1           |   20.6
   1999-07-09    | 1            | France | France | PS   | FOB         | 1           |   24.4

Add these columns for an automatic title (optional):

  • country_code

  • ocean_code

  • vessel_type_code