Annual number of sets per searching day on FOB-associated and free-swimming schools.
set_per_searching_day(
dataframe,
fishing_type,
graph_type = "plot",
title = FALSE
)
data.frame expected. 'Csv' or 'output' of the function data_extraction, which must be done before using the set_per_searching_day() function.
character expected. 'FOB' and 'FSC'.
character expected. 'plot', 'plotly' or 'table.' 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 | school_type | set_duration | positive_set | total_set | total_hour_fished
-----------------------------------------------------------------------------------------
2010-03-06 | FOB | 0 | 0 | 0 | 1.00
2010-12-04 | FOB | 0 | 0 | 0 | 11.8
2010-05-19 | FOB | 0 | 0 | 0 | 2.05
Add these columns for an automatic title (optional):
country_code
ocean_code
vessel_type_code