View source: R/bio_weight_tuna.R
bio_weight_tuna | R Documentation |
Weight distribution of major tuna catches (in percentage of the total number of fishes).
bio_weight_tuna(dataframe, report_year, graph_type = "plot", title = FALSE)
dataframe |
data.frame expected. 'Csv' or 'output' of the function data_extraction, which must be done before using the bio_weight_tuna() function. |
report_year |
integer expected. Year of the statistical report. |
graph_type |
character expected. 'plot' or 'ggplot.' 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 | school_type | species_code | size_class | estimated_individual ------------------------------------------------------------------------------- 2018 | FOB | 6 | 45 | 1.97 2018 | FSC | 6 | 44 | 1.25 2018 | FOB | 6 | 43 | 28.7
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.