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. 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_code

  • ocean_label

  • total_catch_weight

Add these columns for an automatic title (optional):

  • country_code

  • ocean_code

  • vessel_type_code