Last observation: 2025 (N = 186)
First observation: 1960 (N = 114)
Last data update: 16 aoû 2026, 20:06. Last compile: 17 aoû 2026, 23:33
Data - WDI
Last observation: 2025 (N = 186)
First observation: 1960 (N = 114)
Last data update: 16 aoû 2026, 20:06. Last compile: 17 aoû 2026, 23:33
NY.GDP.MKTP.CN |>
left_join(iso2c, by = "iso2c") |>
group_by(iso2c, Iso2c) |>
mutate(value = round(value/(10^9))) %>%
summarise(Nobs = n(),
`Year 1` = first(year),
`GDP 1 (Bn)` = first(value) %>% paste0("$ ", .),
`Year 2` = last(year),
`GDP 2 (Bn)` = last(value) %>% paste0("$ ", .)) |>
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 .}NY.GDP.MKTP.CN |>
right_join(iso2c |>
filter((region != "Aggregates") & (region != "NA")),
by = "iso2c") |>
group_by(iso2c, Iso2c) |>
mutate(value = round(value/(10^9))) |>
summarise(`GDP (Bn)` = last(value)) |>
arrange(-`GDP (Bn)`) %>%
mutate(`GDP (Bn)` = `GDP (Bn)` %>% paste0("$ ", ., " Bn")) |>
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 .}NY.GDP.MKTP.CN |>
right_join(iso2c, by = "iso2c") |>
group_by(iso2c, Iso2c) |>
mutate(value = round(value/(10^9))) |>
summarise(`GDP (Bn)` = last(value)) |>
arrange(-`GDP (Bn)`) %>%
mutate(`GDP (Bn)` = `GDP (Bn)` %>% paste0("$ ", ., " Bn")) %>%
{if (is_html_output()) datatable(., filter = 'top', rownames = F) else .}
NY.GDP.MKTP.CN |>
left_join(iso2c, by = "iso2c") |>
year_to_date() |>
filter(iso2c %in% c("XC", "US"),
date >= as.Date("2008-01-01")) |>
group_by(iso2c) |>
arrange(date) |>
mutate(value = 100*value/value[1]) |>
mutate(Iso2c = ifelse(iso2c == "XC", "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, 2) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(70, 200, 5)) +
xlab("") + ylab("PIB en $ (100 = 2008)")
NY.GDP.MKTP.CN |>
left_join(iso2c, by = "iso2c") |>
year_to_date() |>
filter(iso2c %in% c("XC", "US"),
date >= as.Date("2008-01-01")) |>
group_by(iso2c) |>
arrange(date) |>
mutate(Iso2c = ifelse(iso2c == "XC", "Europe", Iso2c)) |>
left_join(colors, by = c("Iso2c" = "country")) |>
mutate(color = ifelse(iso2c == "US", color2, color)) |>
ungroup() |>
mutate(dollar = value/10^9,
value = 100*value/value[2]) |>
ggplot() + theme_minimal() + scale_color_identity() +
geom_line(aes(x = date, y = value, color = color)) +
add_flags +
scale_x_date(breaks = seq(1950, 2100, 2) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(10, 200, 5)) +
xlab("") + ylab("PIB en $ (100 = Zone Euro, 2008)") +
geom_text_repel(data = . %>% filter(year(date) %in% seq(2008, 2022, 2)),
aes(x = date, y = value, label = paste0("$", round(dollar, digits = -2), " Md")))