Serdar Eren Mersin - 090180362
The data is provided by International Union for Conservation of Nature’s Red List of Threatened Species (IUCN for short).
Before looking at the work on the data, the first thing to do is to describe how IUCN describes animals. These are the scales:
Another thing to note about the data is that IUCN does their endangerment calculation by dividing the count of endangered animals by the count of animals evaluated by them. This approach was used in this report as well. IUCN calculates calculates three percentages for endangerment; lower, best and higher. Lower does not take the data deficient species in its calculation, best estimate adds half of it into account, and higher takes all of the data deficient species. In this paper, the percent was calculated using the lower percent rule.
The first step is to do some cleaning in the data.
yearly_threat_table <- read_csv("data/Number of Threatened Species Yearly.csv", na = c("-"), show_col_types = FALSE)
relation_table <- read_csv("data/Number of Species Evaluated in Relation to Overall Number of Described Species.csv", show_col_types = FALSE)
detailed_table <- read_csv("data/Table 3 Species by kingdom and class - show all.csv", show_col_types = FALSE) %>%
select(-c("Subtotal (EX+EW+ CR(PE)+CR(PEW))", "Subtotal (threatened spp.)", "LR/cd", "Subtotal (EX+EW)", "Total")) %>%
rename("LC" = "LC or LR/lc", "NT" = "NT or LR/nt", "PE" = "CR(PE)", "PEW" = "CR(PEW)")
# Pick the necessary data
total_nums <- relation_table %>%
select(c("Animal Type", "Estimated Number OF Described Species", "Number of species evaluated by 2021 (IUCN Red List version 2021-2)"))
The next step is to visualize the data. The visualization is categorized by the classes.
yearly_threat_table %>%
select(c("Year", "Assesment Type", "Mammals")) %>%
filter(grepl("Total threatened", yearly_threat_table$`Assesment Type`)) %>%
ggplot(aes(x = Year, y = Mammals, group = 1)) + geom_line() + geom_point() + labs(title = "Change of Endangered Mammals Through the Years") + theme(plot.title = element_text(hjust = 0.4), axis.text.x = element_text(angle = 90, hjust = 1, vjust = 0.5))
total_nums %>%
filter(grepl("Mammals", total_nums$`Animal Type`)) -> temp
detailed_table %>%
filter(grepl("MAMMALIA", detailed_table$Name)) %>%
add_column("Species Count" = temp[[2]]) %>%
add_column("Evaluated Count" = temp[[3]]) %>%
select(-c("Name")) %>%
mutate(Endangered = CR + EN + VU, Extinct = PEW + PE + EX + EW) %>%
select(c("Endangered", "Extinct", "Evaluated Count", "Species Count", "LC", "DD", "NT")) %>%
gather(Stats, Amount) -> mammal_data
mammal_data %>%
add_row(Stats = "Extinction Rate(percent)", Amount = mammal_data$Amount[2]/ mammal_data$Amount[3] * 100) %>%
add_row(Stats = "Endangerement Rate(percent)", Amount = mammal_data$Amount[1] / mammal_data$Amount[3]* 100) %>%
knitr::kable(caption = "Detailed Endangerment and Extinction Info for Mammals - 2021")
Stats | Amount |
---|---|
Endangered | 1327.000000 |
Extinct | 115.000000 |
Evaluated Count | 5954.000000 |
Species Count | 6554.000000 |
LC | 3324.000000 |
DD | 845.000000 |
NT | 371.000000 |
Extinction Rate(percent) | 1.931475 |
Endangerement Rate(percent) | 22.287538 |
ggplot(mammal_data, aes(x = reorder(Stats, -Amount), y = Amount)) + geom_bar(stat = "identity") + labs(title = "Threatened and Endangered Mammals Compared to the Described Mammal Count", x = "Type", y = "Species Count") + theme(plot.title = element_text(hjust = 1.3))
Stats | Amount |
---|---|
Endangered | 2444.000000 |
Extinct | 184.000000 |
Evaluated Count | 7215.000000 |
Species Count | 8361.000000 |
LC | 3129.000000 |
DD | 1184.000000 |
NT | 421.000000 |
Extinction Rate(percent) | 2.550243 |
Endangerement Rate(percent) | 33.873874 |
Stats | Amount |
---|---|
Endangered | 1481.000000 |
Extinct | 186.000000 |
Evaluated Count | 11158.000000 |
Species Count | 11158.000000 |
LC | 8460.000000 |
DD | 52.000000 |
NT | 1001.000000 |
Extinction Rate(percent) | 1.666965 |
Endangerement Rate(percent) | 13.272988 |
Stats | Amount |
---|---|
Endangered | 403.0000000 |
Extinct | 9.0000000 |
Evaluated Count | 1016.0000000 |
Species Count | 1113.0000000 |
LC | 419.0000000 |
DD | 21.0000000 |
NT | 169.0000000 |
Extinction Rate(percent) | 0.8858268 |
Endangerement Rate(percent) | 39.6653543 |
Note that endangered is equal to CR + VU + EN and Extinct is equal to EW + EX + CR(PEW) + CR(PE).
Last thing to showcase is to create a map that shows all extinction values by countries.
Stats | Amount |
---|---|
Endangered | 1.959000e+03 |
Extinct | 1.410000e+02 |
Spec. Count | 1.053578e+06 |
LC | 5.841000e+03 |
DD | 2.961000e+03 |
NT | 6.520000e+02 |
Extinction Rate(percent) | 1.338300e-02 |
Endangerement Rate(percent) | 1.859378e-01 |
There are not enough data to go with, so such data has not been considered in this project.
A table that summarizes important finds :
Stats | Mammals | Amphibians | Birds | Gymnosperms |
---|---|---|---|---|
Endangered | 1327 | 2444 | 1481 | 403 |
Extinct | 115 | 184 | 186 | 9 |
Evaluated Count | 5954 | 7215 | 11158 | 1016 |
Species Count | 6554 | 8361 | 11158 | 1113 |
LC | 3324 | 3129 | 8460 | 419 |
DD | 845 | 1184 | 52 | 21 |
NT | 371 | 421 | 1001 | 169 |
The point of the project is to show extinction and endangerment values for some animal types and plant types.
The most problematic part is that there are still insufficient data for a lot of classes. IUCN only does calculations when the evaluated species count exceeds 80 percent of the total count of described species. Except the classes in this report and velvet worms, there are still missing data for them.