View source: R/fishing_effort.R
fishing_effort | R Documentation |
Changes in nominal effort over time. Annual total number of fishing and searching days.
fishing_effort(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_effort() 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 | vessel_code | flag | fleet | vessel_label | landing_date | ocean_code | harbour_label | set_duration | vessel_type_code | total_hour_at_sea | total_hour_fished -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 2010-03-06 | 679 | France | France | MEN GOE | 2010-03-06 | 1 | ABIDJAN | 0.0 | 1 | 7.0 | 1.005 2010-12-04 | 492 | France | France | GUERIDEN | 2010-12-05 | 1 | TEMA | 0.0 | 1 | 24.0 | 11.838 2010-05-19 | 401 | France | France | VIA HARMATTAN | 2010-05-19 | 1 | ABIDJAN | 0.0 | 1 | 8.0 | 2.048
Add these columns for an automatic title (optional):
country_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.