fishing_time | R Documentation |
Represents the time spent by the fleet (in hours)
fishing_time(dataframe, graph_type = "plot", title = FALSE)
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. |
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
The function return ggplot R plot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.