Wicked Tuna

R Data Analysis Fisheries

Atlantic Bluefin Tuna now is endangered because overexploited, I want to find out current condition.

Fajar Nugroho https://fajardwnugroho.com/
01-02-2022

1. Intro

1.1 Greetings

Helo, Welcome to My Rmd In this Rmd I would explore about Tuna

1.2 Brief

I want to visualize some graphs to inform a Tuna condition

1.3 Problem Background

Atlantic Bluefin Tuna now is endangered because overexploited, I want to find out current condition.
1. Which species are the most exploited?
2. Which countries exploit the most?
3. What is the solution to the current condition?

Red List Tuna.

Figure 1: Red List Tuna.

1.4 Library

1.5 Dataset

Dataset is from FAO Fisheries Division
“FAO Aquaculture, Capture and Global production databases with data from 1950 to 2018”

country <- read_csv("input_fish/CL_FI_COUNTRY_GROUPS.csv")
production <- read_csv("input_fish/CL_FI_PRODUCTION_SOURCE.csv")
species <- read_csv("input_fish/CL_FI_SPECIES_GROUPS.csv")
symbol <- read_csv("input_fish/CL_FI_SYMBOL.csv")
unit <- read_csv("input_fish/CL_FI_UNIT.csv")
waterarea <- read_csv("input_fish/CL_FI_WATERAREA_GROUPS.csv")
TS <- read_csv("input_fish/TS_FI_PRODUCTION.csv")

2. Data Wrangling

2.1 Filter the Species

I looking for the names of colomn

names(species) #Check colomn names
 [1] "3Alpha_Code"     "Taxonomic_Code"  "Identifier"     
 [4] "Name_En"         "Name_Fr"         "Name_Es"        
 [7] "Name_Ar"         "Name_Cn"         "Name_Ru"        
[10] "Scientific_Name" "Author"          "Family"         
[13] "Order"           "Major_Group"     "Yearbook_Group" 
[16] "ISSCAAP_Group"   "CPC_Class"       "CPC_Group"      

I use three colomn ‘3Alpha_Code’, Name_En and Scientific_Name to extract the code

Nama_Tuna <- species %>% 
  select('3Alpha_Code', Name_En, Scientific_Name) %>% 
  filter(Name_En %in% c("Atlantic bluefin tuna", "Southern bluefin tuna", "Pacific bluefin tuna", "Bigeye tuna", "Albacore", "Longtail tuna", "Blackfin tuna", "Yellowfin tuna")) #Filtering species

Species

Nama_Tuna
# A tibble: 8 × 3
  `3Alpha_Code` Name_En               Scientific_Name   
  <chr>         <chr>                 <chr>             
1 BFT           Atlantic bluefin tuna Thunnus thynnus   
2 PBF           Pacific bluefin tuna  Thunnus orientalis
3 LOT           Longtail tuna         Thunnus tonggol   
4 BLF           Blackfin tuna         Thunnus atlanticus
5 ALB           Albacore              Thunnus alalunga  
6 SBF           Southern bluefin tuna Thunnus maccoyii  
7 YFT           Yellowfin tuna        Thunnus albacares 
8 BET           Bigeye tuna           Thunnus obesus    

The code has been extracted, next replace the code with species names


Decode - Encode

I use Time Series dataset from 1950 to 2018

TUNA <- TS %>% 
  filter(SPECIES %in% c("BFT", 
                        "PBF", 
                        "LOT", 
                        "BLF", 
                        "ALB", 
                        "SBF", 
                        "YFT", 
                        "BET"),
         YEAR %in% 1950:2018)

Replacing

I using sapply function for this step

TUNA$SPECIES <- sapply(as.character(TUNA$SPECIES), switch, 
                       "BFT" = "Atlantic Bluefin Tuna",
                       "PBF" = "Pacific Bluefin Tuna", 
                       "LOT" = "Longtail Tuna", 
                       "BLF" = "Blackfin Tuna", 
                       "ALB" = "Albacore",
                       "SBF" = "Southern Bluefin Tuna", 
                       "YFT" = "Yellowfin Tuna",
                       "BET" = "Bigeye Tuna")

2.2 The Country

Now, country who harvesting Tuna. There are 21 top country I got from FAO and then I filtering from country dataset

topFAO <- country %>% 
  filter(Name_En %in% c("Thailand", "Spain", "Ecuador", "Taiwan Province of China", "China", "Indonesia", "Korea, Republic of", "Viet Nam", "Philippines", "Netherlands", "Mauritius", "Japan", "United States of America", "Italy", "France", "Germany", "United Kingdom", "Australia", "Canada", "Portugal", "Saudi Arabia")) %>% 
  select(UN_Code, Name_En)

OK, I got the code of country


Filter Code of Country

TUNA <- TUNA %>% 
  filter(COUNTRY %in% c("036", "124", "156", "158", "218", "250", "276", "360", "380", "392", "410", "480", "528", "608", "620", "682", "704", "724", "764", "826", "840"))

After that I do the same things like before on Species

Decode - Encode

TUNA$COUNTRY <- sapply(as.character(TUNA$COUNTRY), switch, 
                            "036" = "Australia",
                            "124" = "Canada", 
                            "156" = "China", 
                            "158" = "Taiwan Province of China", 
                            "218" = "Ecuador",
                            "250" = "France", 
                            "276" = "Germany",
                            "360" = "Indonesia",
                            "380" = "Italy",
                            "392" = "Japan", 
                            "410" = "Korea, Republic of", 
                            "480" = "Mauritius", 
                            "528" = "Netherlands",
                            "608" = "Philippines", 
                            "620" = "Portugal",
                            "682" = "Saudi Arabia",
                            "704" = "Viet Nam",
                            "724" = "Spain", 
                            "764" = "Thailand", 
                            "826" = "United Kingdom", 
                            "840" = "United States of America")

2.3 Fishing Ground

Now, where the fish is capturing. The Fishing ground

fishing_ground <- waterarea %>% 
  filter(Code %in% c("77", "87", "21", "67", "61", "71", "27", "31", "51", "57", "81", "34", "37", "47", "41")) %>% 
  select(Code, Name_en)
TUNA$AREA <- sapply(as.character(TUNA$AREA), switch,
                    "77" = "Pacific, Eastern Central",
                    "87" = "Pacific, Southeast",
                    "21" = "Atlantic, Northwest",
                    "67" = "Pacific, Northeast",
                    "61" = "Pacific, Northwest",
                    "71" = "Pacific, Western Central",
                    "27" = "Atlantic, Northeast",
                    "31" = "Atlantic, Western Central",
                    "51" = "Indian Ocean, Western", 
                    "57" = "Indian Ocean, Eastern",
                    "81" = "Pacific, Southwest",
                    "34" = "Atlantic, Eastern Central",
                    "37" = "Mediterranean and Black Sea",
                    "47" = "Atlantic, Southeast",
                    "41" = "Atlantic, Southwest")

2.4 Source

Another to hervesting the Tuna is from Marine Aquaculture

TUNA$SOURCE <- sapply(as.character(TUNA$SOURCE), switch,
                      "3" = "Marine Aquaculture",
                      "4" = "Capture Fisheries")

2.5 Sub-Genus

In this step I did a little future enginering, create a new colomn ._.

Thunnus <- Thunnus %>% 
  mutate(FIN = SPECIES)

Next, species grouping by their sub-genus

Thunnus$FIN <- sapply(as.character(Thunnus$FIN), switch, 
                      "Atlantic Bluefin Tuna" = "Bluefin",
                      "Pacific Bluefin Tuna" = "Bluefin", 
                      "Longtail Tuna" = "Yellowfin", 
                      "Blackfin Tuna" ="Yellowfin", 
                      "Albacore" = "Bluefin",
                      "Southern Bluefin Tuna" = "Bluefin", 
                      "Yellowfin Tuna" = "Yellowfin",
                      "Bigeye Tuna" = "Bluefin")

3 EDA | Exploratory Data Analysis

3.1 Total Catch by Fishing Ground

Pacific, Southeast is the closest ocean to Indonesia, it could be that Indonesian fishermen catch tuna at this fishing ground. The species most frequently capture is Yellowfin Tuna, which is NT IUCN status or near threatened. However, if they are almost threatened, then are they the most worthy of exploitation?

3.2 Total Yearly Catch by Sub-Genus

3.3 Total Yearly Catch by Species

3.4 Total Yearly Catch by Country

3.5 Time Series

Blue Fin X Yellow Fin (1950 - 2018)

3.6 Trend

Sub-Genus Yellowfin Tuna

Sub-Genus Bluefin Tuna

3.7 Capture vs Culture

3.8 The Rising of Marine Aquaculture

4. Solution

4.1 Maximum Sustainable Yield

MSY Concept.

Figure 2: MSY Concept.

Maximum sustainable yield is a concept, conservation of fishery resources is very necessary. By using the MSY concept, it is expected to be able to maintain sustainability

4.2 Marine Aquaculture

Marine Aquaculture.

Figure 3: Marine Aquaculture.

Marine aquaculture in the future will be a solution to overexploitation of tuna

5. Reference

http://www.fao.org/fishery/statistics/global-production/en
Cover photo by kate on Unsplash
This article also available on Medium and Rpubs

Reuse

Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".

Citation

For attribution, please cite this work as

Nugroho (2022, Jan. 2). fajardwnugroho: Wicked Tuna. Retrieved from https://fajardwnugroho.netlify.app/posts/2021-08-02-wicked-tuna/

BibTeX citation

@misc{nugroho2022wicked,
  author = {Nugroho, Fajar},
  title = {fajardwnugroho: Wicked Tuna},
  url = {https://fajardwnugroho.netlify.app/posts/2021-08-02-wicked-tuna/},
  year = {2022}
}