Assessing patterns of extinction risk amongst mammal species in Nigeria: A comparative analysis of human impact.
4 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.
The 7 matches
- [1] § Material and methods ↔ NIGMAL Scripts/Data_Cleaning.Rmd, lines 68 to 122 · score 0.91 · Extant Reintroduced, Possibly Extant, extant polygons, geographic area, extinct area, Geographic range · block
oscr:b:P40GEF4H1B6KR-5· Report a mismatch - [2] § Results ↔ NIGMAL Scripts/visualization.Rmd, lines 7 to 96 · score 0.78 · Residential Commercial Development, Human Intrusions, Agriculture Aquaculture, Biological Resource, Climate Change Severe, Brain Mass · block
oscr:b:ZYG950V91J4BD-S· Report a mismatch - [3] § Results ↔ NIGMAL Scripts/visualization.Rmd, lines 7 to 96 · score 0.76 · Energy Production Mining, Transportation Service Corridors, Agriculture Aquaculture, Climate Change Severe, Weather, human · block
oscr:b:ZYG950V91J4BD-S· Report a mismatch - [4] § Material and methods ↔ NIGMAL Scripts/model_outputs.Rmd, lines 7 to 120 · score 0.75 · logistic_MPLE, phylogenetic logistic regression, IUCN Red, pruned, Threats Model, phyloglm · block
oscr:b:59BY272CDMB9B-Q· Report a mismatch - [5] § Results ↔ NIGMAL Scripts/model_fitting.Rmd, lines 41 to 80 · score 0.74 · Human Intrusions, Commercial Development, Agriculture Aquaculture, Severe Weather, Biological Resource, Climate Change · block
oscr:b:NPG83PV1W1F4P-V· Report a mismatch - [6] § Results ↔ NIGMAL Scripts/model_fitting.Rmd, lines 41 to 80 · score 0.72 · Service Corridors, Energy Production, Agriculture Aquaculture, Severe Weather, Climate Change, Mining · block
oscr:b:NPG83PV1W1F4P-V· Report a mismatch - [7] § Material and methods ↔ NIGMAL Scripts/model_outputs.Rmd, lines 7 to 120 · score 0.58 · phylogenetic logistic regression, IUCN threat categories, models · block
oscr:b:59BY272CDMB9B-Q· Report a mismatch
Paper
Loaded from Europe PMC by your browser; OSCR does not store it: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
R Markdown · 238 lines · 6.9 KB · MIT · 2 matches
- ---
- title: "visualization"
- author: "Bernard Asanbe"
- date: "2025"
- ---
- ```{r}
- # Load required libraries
- library(ggplot2)
- library(dplyr)
- library(readr)
- library(scales)
- # Read the CSV file
- data <- read_csv("insert_file_path_here/Phyloglm_modelling_results.csv")
- # Filter out intercept rows
- data <- data %>% filter(Predictor != "(Intercept)")
- # Add significance labels: multiple asterisks based on p-values
- data <- data %>%
- mutate(Significance = case_when(
- Sig < 0.001 ~ "***",
- Sig < 0.01 ~ "**",
- Sig < 0.05 ~ "*",
- TRUE ~ ""
- ))
- # Order models, keeping "Total_Threat_Model" first
- models <- unique(data$Model)
- models <- c("Total_Threats_Model", setdiff(models, "Total_Threats_Model"))
- # Create a high-contrast color palette using varying luminance
- # Mix of dark and light tones for better contrast
- n_other <- length(models) - 1
- hues <- seq(15, 375, length.out = n_other + 1)[-1]
- luminances <- rep(c(40, 70), length.out = n_other) # alternate luminance for contrast
- colorful_palette <- hcl(h = hues, c = 100, l = luminances)
- # Assign black to Total Threat Model, add colorful palette to others
- colors <- c("Total_Threats_Model" = "black")
- colors <- c(colors, setNames(colorful_palette, models[-1]))
- # Set factor levels to control order
- data$Model <- factor(data$Model, levels = models)
- # Clean up Predictor labels (x-axis)
- data$Predictor <- recode(data$Predictor,
- "Scaled_CurrentByTotalArea_km2" = "Historical Range Contraction",
- "Scaled_Log_Brain_Mass_g" = "Brain Mass",
- "Scaled_Log_CurrentArea_km2" = "Current Area (km²)",
- "Scaled_Log_GenerationTime_d" = "Generation Time",
- "Scaled_Log_Mass_g" = "Body Mass",
- )
- # Clean up Model labels (legend)
- data$Model <- recode(as.character(data$Model),
- "Total_Threats_Model" = "Total Threats Model",
- "Agriculture_&_aquaculture" = "Agriculture & Aquaculture",
- "Biological_resource_use" = "Biological Resource Use",
- "Residential_&_commercial_development" = "Residential & Commercial Development",
- "Energy_production_&_mining" = "Energy Production & Mining",
- "Transportation_&_service_corridors" = "Transportation & Service Corridors",
- "Human_intrusions_&_disturbance" = "Human Intrusions & Disturbance",
- "Climate_change_&_severe_weather" = "Climate Change & Severe Weather",
- "Pollution" = "Pollution"
- )
- # Re-apply factor order after recoding (Total Threats must stay first)
- data$Model <- factor(data$Model, levels = c(
- "Total Threats Model",
- "Agriculture & Aquaculture",
- "Biological Resource Use",
- "Residential & Commercial Development",
- "Energy Production & Mining",
- "Transportation & Service Corridors",
- "Human Intrusions & Disturbance",
- "Climate Change & Severe Weather",
- "Pollution"
- ))
- # Update colors to match new model names
- colors <- c("Total Threats Model" = "black")
- colors <- c(colors, setNames(colorful_palette,
- c("Agriculture & Aquaculture",
- "Biological Resource Use",
- "Residential & Commercial Development",
- "Energy Production & Mining",
- "Transportation & Service Corridors",
- "Human Intrusions & Disturbance",
- "Climate Change & Severe Weather",
- "Pollution")))
- ```
- Plotting of Raw graph
- ```{r}
- # Compute vertical position for asterisks
- data <- data %>%
- mutate(asterisk_y = ifelse(Effect_size >= 0,
- Effect_size + SE + 0.05,
- Effect_size - SE - 0.1))
- # Build the final plot
- p1 <- ggplot(data, aes(x = Predictor, y = Effect_size, fill = Model)) +
- geom_bar(stat = "identity",
- position = position_dodge(width = 0.8),
- width = 0.7) +
- geom_errorbar(aes(ymin = Effect_size - SE,
- ymax = Effect_size + SE),
- position = position_dodge(width = 0.8),
- width = 0.25) +
- geom_text(aes(y = asterisk_y, label = Significance),
- position = position_dodge(width = 0.8),
- angle = 90,
- size = 6,
- fontface = "bold",
- color = "red3",
- hjust = -0.05) +
- labs(
- y = "Effect Size",
- x = "Predictor",
- fill = "Threat Models"
- ) +
- scale_fill_manual(values = colors) +
- theme_minimal(base_size = 18) +
- theme(
- axis.text.x = element_text(
- angle = 52,
- size = 14,
- hjust = 1,
- face = "plain"
- ),
- axis.line = element_line(color = "black"),
- axis.ticks = element_line(color = "black"),
- panel.grid.major.x = element_blank(),
- panel.grid.minor.x = element_blank(),
- legend.position = "right"
- )
- p1
- ggsave(
- "Fig1_raw_effects.jpeg",
- plot = p1,
- width = 14,
- height = 8,
- dpi = 300,
- )
- ```
- Plotting of Standardized (scaled) graph
- ```{r}
- # Compute vertical position for asterisks
- data <- data %>%
- mutate(asterisk_y = ifelse(Std_Effect_size >= 0,
- Std_Effect_size + SE + 0.05,
- Std_Effect_size - SE - 0.1))
- # Build the final plot
- p2 <- ggplot(
- data_std,
- aes(x = Predictor,
- y = Std_Effect_size,
- fill = Model)
- ) +
- geom_bar(
- stat = "identity",
- position = position_dodge(width = 0.8),
- width = 0.7
- ) +
- geom_errorbar(
- aes(
- ymin = Std_Effect_size - Std_SE,
- ymax = Std_Effect_size + Std_SE
- ),
- position = position_dodge(width = 0.8),
- width = 0.25
- ) +
- geom_text(
- aes(
- y = asterisk_y,
- label = Significance
- ),
- position = position_dodge(width = 0.8),
- angle = 90,
- size = 6,
- fontface = "bold",
- color = "red3",
- hjust = -0.05
- ) +
- labs(
- y = "Standardized Effect Size",
- x = "Predictor",
- fill = "Threat Models"
- ) +
- scale_fill_manual(values = colors) +
- theme_minimal(base_size = 18) +
- theme(
- axis.text.x = element_text(
- angle = 52,
- size = 14,
- hjust = 1,
- face = "plain"
- ),
- axis.line = element_line(color = "black"),
- axis.ticks = element_line(color = "black"),
- panel.grid.major.x = element_blank(),
- panel.grid.minor.x = element_blank(),
- legend.position = "right"
- )
- # Display plot
- p2
- # Save Figure 2
- ggsave(
- filename = "Fig2_std_effects.jpeg",
- plot = p2,
- width = 14,
- height = 8,
- dpi = 300,
- )
- ```
- ```{r}
- ```
visualization.Rmd, under MIT · at the source
Overview
Abstract
This study aimed to evaluate how biological traits influence extinction risk amongst mammal species in Nigeria and how these traits interact with specific anthropogenic threats, such as agriculture, urbanisation and climate change. Focusing on mammal species in Nigeria, we used phylogenetic logistic regression to test the influence of five biological traits: body mass, brain mass, generation time, current geographic range and historical range contraction, on extinction risk across nine IUCN threat categories. Standardised models were used to compare trait sensitivity across threats. Brain mass emerged as the most consistent and influential predictor of extinction risk across threat categories, including agriculture, biological resource use, urban development and, notably, climate change, where it was the strongest predictor of all models. Species with larger brains, often primates and carnivores, were highly vulnerable. Geographic range size was a strong negative predictor of risk across most models, with range-restricted species more susceptible to habitat loss and fragmentation. Generation time was positively associated with risk under direct human pressures, but inversely linked under climate threats. Body mass showed weak and inconsistent effects overall, though it was significantly and negatively associated with extinction risk under agriculture and aquaculture. The number of species affected was highest under direct human pressures, compared to indirect anthropogenic threats, such as climate change and pollution. Extinction risk in Nigerian mammals is shaped by intrinsic traits that interact predictably with human pressures. Species with large brains, small ranges and slow reproduction are at greatest risk. Trait-based models can improve conservation planning by identifying vulnerable species before population declines become critical, especially in regions facing intensive land-use change.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repository
Its files are read in the Code ↔ Paper reader above, with 7 matches between paragraphs and lines of code.
Zenodo 20646160
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
5 files
- NIGMAL Scripts/
Data_Cleaning.Rmd , R, 142 lines, 1 match - NIGMAL Scripts/
model_fitting.Rmd , R, 120 lines, 2 matches - NIGMAL Scripts/
model_outputs.Rmd , R, 144 lines, 2 matches - NIGMAL Scripts/
visualization.Rmd , R, 238 lines, 2 matches - README.md, Text, 148 lines
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 4 scripts, each with its path and the digest of its content;
- 7 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
Datasets cited
- github.com/
btrex7/ , at github.com; found in the Zenodo archive recordnigmal
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, pages, dates, 1 author, 4 keywords, 38 references.
Cite
This paper
Asanbe, B. (2026). Assessing patterns of extinction risk amongst mammal species in Nigeria: A comparative analysis of human impact. Biodiversity data journal, 14, e191439. https://
BibTeX
@article{asanbe2026asses
author = {Asanbe, Bernard},
title = {{Assessing patterns of extinction risk amongst mammal species in Nigeria: A comparative analysis of human impact}},
journal = {Biodiversity data journal},
year = {2026},
month = aug,
volume = {14},
pages = {e191439},
publisher = {Pensoft Publishers},
issn = {1314-2828},
doi = {10.3897/
url = {https://
pmid = {42668897},
pmcid = {PMC13525407}
}
RIS
TY - JOUR
AU - Asanbe, Bernard
TI - Assessing patterns of extinction risk amongst mammal species in Nigeria: A comparative analysis of human impact
T2 - Biodiversity data journal
J2 - Biodivers Data J
PY - 2026
DA - 2026/
VL - 14
SP - e191439
SN - 1314-2828
PB - Pensoft Publishers
DO - 10.3897/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.3897/
"type": "article-journal",
"title": "Assessing patterns of extinction risk amongst mammal species in Nigeria: A comparative analysis of human impact",
"container-title": "Biodiversity data journal",
"author": [
{
"family": "Asanbe",
"given": "Bernard"
}
],
"container-title-short":
"volume": "14",
"page": "e191439",
"DOI": "10.3897/
"PMID": "42668897",
"PMCID": "PMC13525407",
"ISSN": "1314-2828",
"publisher": "Pensoft Publishers",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
8,
21
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1038/s41467-023-35869-7
- Correlated evolution of social organization and lifespan in mammals.Journal: Nature communicationsIn common: 5 references
- [2] doi:10.1038/s41559-023-02253-z [code]
- The evolution of human altriciality and brain development in comparative context.Journal: Nature ecology & evolutionIn common: ggplot2, tidyverse, 2 references
- [3] doi:10.7554/elife.74159 [code]
- Convergent mosaic brain evolution is associated with the evolution of novel electrosensory systems in teleost fishes.Journal: eLifeIn common: car, ggplot2, tidyverse, 1 reference
- [4] doi:10.1111/joa.70035 [code]
- A suture in time: The ontogeny of cranial suture morphology in mammals.Journal: Journal of anatomyIn common: ggplot2, tidyverse, 2 references
- [5] doi:10.1093/zoolinnean/zlae060 [code]
- Divergent patterns of cranial suture fusion in marsupial and placental mammals.Journal: Zoological journal of the Linnean SocietyIn common: ggplot2, tidyverse, 2 references
- [6] doi:10.1016/j.isci.2022.105279 [code]
- A multi-omics approach to visualize early neuronal differentiation from hESCs in 4D.Journal: iScienceIn common: car, ggplot2, tidyverse, 1 reference
- [7] doi:10.1038/s41598-026-53133-y [code]
- Evolutionary stasis in synapsid encephalization during the end-permian mass extinction.Journal: Scientific reportsIn common: tidyverse, 2 references
- [8] doi:10.1093/evlett/qraf028 [code]
- Gestation length both shapes and is shaped by other life history traits in terrestrial eutherian mammals.Journal: Evolution lettersIn common: ggplot2, tidyverse, 1 reference
- [9] doi:10.1111/mec.16347 [code]
- Brain transcriptome analysis reveals gene expression differences associated with dispersal behaviour between range-front and range-core populations of invasive cane toads in Australia.Journal: Molecular ecologyIn common: ggplot2, tidyverse, 1 reference
- [10] doi:10.1038/s41593-026-02321-0 [code]
- Microbial reactivation of host androgens directs enteric neuronal regulation of gut motility.Journal: Nature neuroscienceIn common: ggplot2, tidyverse, 1 reference
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 4 scripts, and 7 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:ddf2c591f8403668…
Add the badge to the code's README
If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.
Markdown
<!-- oscr-badge:start -->
[](https://openscicode.org/badge/doi/10.3897/bdj.14.e191439)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.3897/bdj.14.e191439.svg
:target: https://openscicode.org/badge/doi/10.3897/bdj.14.e191439
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.3897/bdj.14.e191439"><img src="https://openscicode.org/badge/doi/10.3897/bdj.14.e191439.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge page.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.
Report a mismatch between the code and the paper · Report a code error (signed in)
Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.
Report a reproduction failure (signed in)
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
