Represents the time spent by the fleet (in hours)

fishing_time(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_time() 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.

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 | fishing_time | gear | country_label | hrsea | vessel_code
   -------------------------------------------------------------------------------
   1991-01-15    |  0           | 1    | FRA           | 24    | 768
   1991-01-19    | 12.0         | 1    | FRA           | 24    | 324
   1991-01-20    |  7.92        | 1    | FRA           | 15    | 324

Add these columns for an automatic title (optional):

  • country_code

  • ocean_code