Last observation: 2024 (N = 243)
First observation: 1960 (N = 130)
Last data update: 16 aoû 2026, 20:19. Last compile: 18 aoû 2026, 00:20
Data - WDI
Last observation: 2024 (N = 243)
First observation: 1960 (N = 130)
Last data update: 16 aoû 2026, 20:19. Last compile: 18 aoû 2026, 00:20
SP.DYN.IMRT.IN |>
left_join(iso2c, by = "iso2c") |>
group_by(iso2c, Iso2c) |>
summarise(Nobs = n(),
`Year 1` = first(year),
`Pop 1` = first(value),
`Year 2` = last(year),
`Pop 2` = last(value)) |>
arrange(-Nobs) |>
mutate(Flag = gsub(" ", "-", str_to_lower(Iso2c)),
Flag = paste0('<img src="../../bib/flags/vsmall/', Flag, '.png" alt="Flag">')) |>
select(Flag, everything()) %>%
{if (is_html_output()) datatable(., filter = 'top', rownames = F, escape = F) else .}SP.DYN.IMRT.IN |>
right_join(iso2c, by = "iso2c") |>
year_to_date() |>
rename(value = value) |>
filter(iso2c %in% c("US", "CN", "EU")) |>
mutate(Iso2c = ifelse(iso2c == "EU", "Europe", Iso2c)) |>
left_join(colors, by = c("Iso2c" = "country")) |>
mutate(color = ifelse(iso2c == "US", color2, color)) |>
ggplot() + theme_minimal() + scale_color_identity() +
geom_line(aes(x = date, y = value, color = color)) +
add_flags +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_continuous(breaks = 0.01*seq(0, 70, 2),
labels = scales::percent_format(accuracy = 1)) +
xlab("") + ylab("% de la population mondiale")