fishing_capacity: Annual changes in the number of vessel

View source: R/fishing_capacity.R

fishing_capacityR Documentation

Annual changes in the number of vessel

Description

Fishing capacity. Annual changes in the number of purse seiners by tonnage categories (barplots) and total carrying capacity (dashed line with circles).

Usage

fishing_capacity(dataframe, 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 fishing_capacity() function.

graph_type

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

title

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

Details

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

   activity_date | catch | keel_code
   ----------------------------------
   2010-03-06    | 1742  | 466
   2010-12-04    | 1800  | 426
   2010-05-19    | 1500  | 165

Add these columns for an automatic title (optional):

  • country_code

  • ocean_code

  • vessel_type_code

Value

The function return ggplot R plot.


OB7-IRD/fishi documentation built on Feb. 4, 2025, 2:03 a.m.