View source: R/map_catch_distribution.R
map_catch_distribution | R Documentation |
Spatial distribution of tuna catches.
map_catch_distribution(
dataframe,
fishing_type = "ALL",
graph_type = "plot",
title = FALSE
)
dataframe |
data.frame expected. 'Csv' or 'output' of the function data_extraction, which must be done before using the map_catch_distribution() function. |
fishing_type |
character expected. 'FOB', 'FSC' or 'ALL'. ALL by default. |
graph_type |
character expected. 'plot' or 'plotly'. 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 | species_code | ocean_code | school_type | cwp11_act | activity_id | positive_set | total_catch_weight ----------------------------------------------------------------------------------------------------------------------------------- 2022-01-02 | 703 | 3 | 1 | FSC | 301000 | 1 | 1 | 2.60 2022-01-02 | 703 | 1 | 1 | FSC | 301000 | 1 | 1 | 17.8 2022-01-02 | 703 | 3 | 1 | FSC | 301000 | 2 | 1 | 1.11
Add these columns for an automatic title (optional):
country_code
vessel_type_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.