Tidy Tuesday: The most frog-rich countries have the thinnest AmphibiaWeb accounts

tidytuesday
R
biology
data-visualization
AmphibiaWeb lists 8,018 frogs and toads, but only a quarter have a written description. The gaps are biggest in the countries with the most species.
Author

Sean Thimons

Published

October 13, 2026

Preface

From the TidyTuesday repository.

This week’s data is every frog and toad (order Anura) in AmphibiaWeb, pulled from the site’s XML dump and curated by Ntobeko Sosibo. Each row is a species. A few columns are taxonomy, and the rest are free-text fields for an account: a physical description, a range, life history, threats, references, and who wrote it.

The README suggests a few angles, including IUCN status by family. That column turns out to be empty for all 8,018 rows, so I skipped it. The more interesting thing in this file is how much of it is blank. Most species are a name, a family, and a list of country codes. I wanted to know which frogs get a write-up and which ones don’t.

Loading necessary packages

Code
library(tidyverse)
library(tidytuesdayR)
library(skimr)
library(scales)
library(ggrepel)

`%ni%` <- Negate(`%in%`)

Load raw data from package

raw <- tidytuesdayR::tt_load("2026-10-13")
frogs <- raw$frogs_and_toads_amphibiaweb

Exploratory data analysis

The text fields are long, so instead of skimming their contents I turned each one into a yes/no flag for whether it has anything in it.

frogs %>%
  select(family, genus, isocc, submit_date, edit_date) %>%
  skim()
Data summary
Name Piped data
Number of rows 8018
Number of columns 5
_______________________
Column type frequency:
character 3
Date 2
________________________
Group variables None

Variable type: character

skim_variable n_missing complete_rate min max empty n_unique whitespace
family 0 1 7 20 0 57 0
genus 0 1 4 17 0 504 0
isocc 31 1 2 140 0 955 0

Variable type: Date

skim_variable n_missing complete_rate min max median n_unique
submit_date 6117 0.24 1999-02-16 2021-01-29 2004-11-07 742
edit_date 5659 0.29 2001-02-12 2026-09-27 2021-03-17 887
frogs %>%
  summarise(
    species = n(),
    across(
      c(description, distribution, life_history, trends_and_threats, refs, interntnl_status),
      ~ sum(!is.na(.x))
    )
  ) %>%
  pivot_longer(-species, names_to = "field", values_to = "filled") %>%
  mutate(share_filled = filled / species) %>%
  arrange(desc(filled))
# A tibble: 6 × 4
  species field              filled share_filled
    <int> <chr>               <int>        <dbl>
1    8018 distribution         2252        0.281
2    8018 refs                 2076        0.259
3    8018 life_history         2053        0.256
4    8018 description          2011        0.251
5    8018 trends_and_threats   1524        0.190
6    8018 interntnl_status        0        0    

There are 8,018 species across 57 families. Only 2,011 have a physical description, which is 25%. The range, life history, and reference fields are filled at about the same rate, and interntnl_status is empty everywhere. Native country codes (isocc) are nearly complete: only 31 species are missing them. That makes country a good way to look at who has an account and who doesn’t.

For the rest of the post, “described” means the description field has text in it. I use that field rather than “any text field” because one batch of Australian records has range and threat notes but no description. More on that below.

Coverage by country

A species that lives in three countries counts once for each of them. I kept the 59 countries with at least 50 native species so the percentages aren’t based on a handful of frogs.

overall_share <- mean(!is.na(frogs$description))

frogs_by_country <- frogs %>%
  filter(!is.na(isocc)) %>%
  mutate(iso = str_split(isocc, ",")) %>%
  unnest(iso) %>%
  mutate(iso = str_trim(iso)) %>%
  filter(iso != "")

country_coverage <- frogs_by_country %>%
  group_by(iso) %>%
  summarise(
    species = n(),
    described = sum(!is.na(description)),
    share = described / species,
    range_share = mean(!is.na(distribution)),
    .groups = "drop"
  ) %>%
  filter(species >= 50) %>%
  mutate(above = share > overall_share)

cat(sprintf("country_coverage: %d rows, %d cols\n", nrow(country_coverage), ncol(country_coverage)))
country_coverage: 59 rows, 6 cols
stopifnot("Plot data has 0 rows" = nrow(country_coverage) > 0)

top_ten <- country_coverage %>%
  slice_max(species, n = 10)

top_ten %>%
  arrange(desc(species))
# A tibble: 10 × 6
   iso   species described share range_share above
   <chr>   <int>     <int> <dbl>       <dbl> <lgl>
 1 BR       1173       215 0.183       0.199 FALSE
 2 CO        777       194 0.250       0.256 FALSE
 3 EC        696       163 0.234       0.241 FALSE
 4 PE        676       163 0.241       0.246 FALSE
 5 CN        593       104 0.175       0.196 FALSE
 6 MG        443       274 0.619       0.621 TRUE 
 7 PG        435        57 0.131       0.182 FALSE
 8 IN        430        87 0.202       0.205 FALSE
 9 ID        400        69 0.172       0.2   FALSE
10 VE        351        75 0.214       0.217 FALSE
country_coverage %>%
  summarise(
    countries = n(),
    above_overall = sum(above),
    top_ten_pooled_share = sum(top_ten$described) / sum(top_ten$species)
  )
# A tibble: 1 × 3
  countries above_overall top_ten_pooled_share
      <int>         <int>                <dbl>
1        59            41                0.235
cor.test(log10(country_coverage$species), country_coverage$share, method = "spearman", exact = FALSE)

    Spearman's rank correlation rho

data:  log10(country_coverage$species) and country_coverage$share
S = 48040, p-value = 0.001514
alternative hypothesis: true rho is not equal to 0
sample estimates:
       rho 
-0.4038639 

Here’s the odd part. Most countries do better than the overall 25%: 41 of the 59 are above it. The overall number is low because the countries with the most frogs are below it. Brazil has 1,173 native species in this file and 215 descriptions (18%). Papua New Guinea has 435 and 57 (13%). Pooled across the ten countries with the most species, only 23% are described. The rank correlation between a country’s species count and its described share is about -0.40 across the 59 countries.

frog_pal <- paletteer::paletteer_d("NatParksPalettes::IguazuFalls")
moss <- as.character(frog_pal[1])
bark <- as.character(frog_pal[3])
mist <- as.character(frog_pal[6])

country_names <- tribble(
  ~iso, ~country,
  "BR", "Brazil",
  "CO", "Colombia",
  "EC", "Ecuador",
  "PE", "Peru",
  "CN", "China",
  "MG", "Madagascar",
  "PG", "Papua New Guinea",
  "IN", "India",
  "ID", "Indonesia",
  "AU", "Australia",
  "US", "United States",
  "CR", "Costa Rica",
  "LK", "Sri Lanka",
  "GH", "Ghana",
  "CI", "Côte d'Ivoire",
  "SL", "Sierra Leone",
  "HT", "Haiti"
)

plot_data <- country_coverage %>%
  left_join(country_names, by = "iso") %>%
  mutate(
    label = if_else(is.na(country), NA_character_, paste0(country, " ", percent(share, accuracy = 1))),
    status = if_else(above, "Above the overall share", "Below the overall share")
  )

australia <- plot_data %>% filter(iso == "AU")
n_top_below <- sum(top_ten$share < overall_share)
top_ten_min <- min(top_ten$species)

p <- plot_data %>%
  ggplot(aes(species, share)) +
  annotate(
    "rect",
    xmin = top_ten_min * 0.93, xmax = Inf, ymin = -Inf, ymax = overall_share,
    fill = mist, alpha = 0.35
  ) +
  annotate(
    "text",
    x = 1500, y = 0.02, hjust = 1, vjust = 0, size = 3.4, color = "grey25", lineheight = 0.95,
    label = paste0(n_top_below, " of the 10 most frog-rich countries\nsit below the overall line")
  ) +
  geom_hline(yintercept = overall_share, linetype = "22", color = "grey30", linewidth = 0.5) +
  annotate(
    "text",
    x = 50, y = overall_share + 0.015, hjust = 0, vjust = 0, size = 3.3, color = "grey30",
    label = paste0("All 8,018 species: ", percent(overall_share, accuracy = 1), " described")
  ) +
  geom_point(aes(color = status), size = 2.6, alpha = 0.55) +
  geom_point(
    data = ~ filter(.x, !is.na(label)),
    aes(fill = status), shape = 21, color = "white", size = 3.6, stroke = 0.6
  ) +
  geom_text_repel(
    aes(label = label, color = status),
    size = 3.3, fontface = "bold", seed = 1013,
    min.segment.length = 0.2, box.padding = 0.45, point.padding = 0.3,
    na.rm = TRUE, show.legend = FALSE
  ) +
  annotate(
    "curve",
    x = 205, y = 0.065, xend = australia$species * 0.96, yend = australia$share - 0.01,
    curvature = 0.3, arrow = arrow(length = unit(2, "mm")), color = "grey35", linewidth = 0.4
  ) +
  annotate(
    "text",
    x = 200, y = 0.04, hjust = 1, vjust = 0, size = 3.2, color = "grey25", lineheight = 0.95,
    label = paste0(
      "Australia has range notes for ", percent(australia$range_share, accuracy = 1),
      "\nof its species, but descriptions for ", percent(australia$share, accuracy = 1)
    )
  ) +
  scale_x_log10(
    breaks = c(50, 100, 200, 500, 1000),
    labels = label_comma(),
    expand = expansion(mult = c(0.03, 0.05))
  ) +
  scale_y_continuous(labels = label_percent(), limits = c(0, 0.9), expand = expansion(mult = c(0, 0.02))) +
  scale_color_manual(values = c("Above the overall share" = moss, "Below the overall share" = bark), name = NULL) +
  scale_fill_manual(values = c("Above the overall share" = moss, "Below the overall share" = bark), guide = "none") +
  labs(
    title = "The countries with the most frogs have the least written about them",
    subtitle = "Share of each country's native frogs and toads with a physical description in AmphibiaWeb\n59 countries with at least 50 native species",
    x = "Native frog and toad species in the country (log scale)",
    y = "Species with a description",
    caption = "Data: AmphibiaWeb via TidyTuesday 2026-10-13"
  ) +
  theme_minimal(base_size = 12) +
  theme(
    plot.background = element_rect(fill = "grey98", color = NA),
    panel.grid.minor = element_blank(),
    panel.grid.major = element_line(color = "grey88", linewidth = 0.3),
    plot.title = element_text(face = "bold", size = 16),
    plot.subtitle = element_text(color = "grey30", margin = margin(b = 10)),
    plot.caption = element_text(color = "grey45", size = 9),
    axis.title = element_text(color = "grey30"),
    legend.position = "top",
    legend.justification = "left",
    plot.margin = margin(12, 16, 10, 12)
  )

p
Figure 1: Share of each country’s native frog species with a description in AmphibiaWeb, against the number of native species (log scale). Countries with at least 50 species are shown. Species found in several countries count toward each one. The dashed line is the share across all 8,018 species.

The upper-left of the plot is where accounts are good: the United States, Sri Lanka, and a cluster of West African countries, each with 60 to 170 species and most of them described. The shaded corner on the right is the opposite. Brazil, the Andean countries, China, India, Indonesia, and Papua New Guinea all sit at or just under the overall line. Madagascar is the exception among the big ones. It has 443 species and 62% of them are described.

Australia is the reason I settled on the description field. Almost every Australian species has range and threat text, so if you count any text field as an account, Australia looks like one of the best-covered countries. The descriptions mostly aren’t there.

Who wrote the accounts

The high spots on that plot line up with a small number of contributors.

frogs_by_country %>%
  filter(iso %in% c("MG", "AU", "CI", "GH", "SL"), !is.na(distribution) | !is.na(description)) %>%
  count(iso, submittedby, sort = TRUE) %>%
  group_by(iso) %>%
  slice_max(n, n = 2, with_ties = FALSE) %>%
  ungroup() %>%
  arrange(iso, desc(n))
# A tibble: 10 × 3
   iso   submittedby                      n
   <chr> <chr>                        <int>
 1 AU    Jean-Marc Hero et. al.         196
 2 AU    Gary Tsai                        5
 3 CI    Arne Schiøtz                    29
 4 CI    Marc-Oliver Rödel               13
 5 GH    Arne Schiøtz                    28
 6 GH    Marc-Oliver Rödel               24
 7 MG    Miguel Vences and Frank Glaw   202
 8 MG    Frank Glaw and Miguel Vences    23
 9 SL    Marc-Oliver Rödel               19
10 SL    Arne Schiøtz                    17

Miguel Vences and Frank Glaw submitted 202 of the accounts that cover Madagascar, plus 23 more credited as “Frank Glaw and Miguel Vences.” Arne Schiøtz and Marc-Oliver Rödel together account for the top West African entries. Almost all of Australia’s text comes from one batch credited to “Jean-Marc Hero et. al.” This is a volunteer-written reference, and coverage follows where a few specialists chose to spend a lot of time.

Final thoughts and takeaways

One in four frogs in AmphibiaWeb has a physical description, and those descriptions are not spread evenly. A frog from Ghana or Sri Lanka has a better chance of being described than a frog from Brazil, Papua New Guinea, or Indonesia, even though those three countries hold far more species. Madagascar shows that a big fauna can be covered well. It took two people writing about 200 accounts.

A few caveats. This is a snapshot of one website’s text fields, not a measure of what science knows about these species. Every named species has an original description somewhere in the taxonomic literature. Most of them just haven’t been turned into AmphibiaWeb accounts. Counting a widespread species in every country it lives in also means the country numbers aren’t independent. And the conservation-status field the README points to is empty here, so I can’t say whether the gaps fall on threatened species. That would be the next thing I’d want to check.