Spatial distribution of tuna effort.
map_effort_distribution(dataframe, graph_type = "plot", title = FALSE)
data.frame expected. 'Csv' or 'output' of the function data_extraction, which must be done before using the map_effort_distribution() function.
character expected. 'plot' or 'plotly.' Plot by default.
TRUE or FALSE expected. Title for plotly graph_type. False by default.
The function return ggplot R plot.
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