Spatial distribution of tuna effort.

map_effort_distribution(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 map_effort_distribution() function.

graph_type

character expected. 'plot' or 'plotly.' 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 | cwp11_act | ocean_code | set_duration | total_hour_fished
   --------------------------------------------------------------------------
   2022-01-02    | 301000    | 1          | 2.61         |  6.17
   2022-01-02    | 301000    | 1          | 2.61         |  6.17
   2022-01-02    | 301000    | 1          | 2.42         |  5.98

Add these columns for an automatic title (optional):

  • country_code

  • vessel_type_code