Last observation: 2025 (N = 232)
First observation: 1990 (N = 232)
Last data update: 16 aoû 2026, 20:12. Last compile: 17 aoû 2026, 23:48
Data - WDI
Last observation: 2025 (N = 232)
First observation: 1990 (N = 232)
Last data update: 16 aoû 2026, 20:12. Last compile: 17 aoû 2026, 23:48
NY.GDP.PCAP.PP.KD |>
left_join(iso2c, by = "iso2c") |>
group_by(iso2c, Iso2c) |>
mutate(value = round(value)) %>%
summarise(Nobs = n(),
`Year 1` = first(year),
`GDP Per Capita 1` = first(value) %>% paste0("$ ", .),
`Year 2` = last(year),
`GDP Per Capita 2` = 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.PCAP.PP.KD |>
filter(year %in% c(1990, 2019)) |>
left_join(iso2c, by = "iso2c") |>
spread(year, value) |>
mutate(growth = round(100*(`2019`/`1990`-1),1)) |>
mutate(`1990` = round(`1990`),
`2019` = round(`2019`)) |>
arrange(-growth) |>
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.PCAP.PP.KD |>
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/habitant en $ (100 = 2008)")
NY.GDP.PCAP.PP.KD |>
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,
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/habitant 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), " /hab")))
NY.GDP.PCAP.PP.KD |>
filter(iso2c %in% c("DE", "FR")) |>
year_to_date() |>
left_join(iso2c, by = "iso2c") |>
left_join(colors, by = c("Iso2c" = "country")) |>
ggplot() + xlab("") + ylab("GDP per capita, PPP") +
geom_line(aes(x = date, y = value, color = color)) +
theme_minimal() + scale_color_identity() + add_flags +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = c(seq(10000, 70000, 10000), seq(10000, 60000, 5000)),
labels = dollar_format(acc = 1))
NY.GDP.PCAP.PP.KD |>
bind_rows(NY.GDP.PCAP.KD) |>
filter(iso2c %in% c("DE", "FR")) |>
left_join(iso2c, by = "iso2c") |>
mutate(Iso2c2 = gsub("Germany", "Allemagne", Iso2c),
variable2 = case_when(variable == "NY.GDP.PCAP.PP.KD" ~ paste0("PIB/hab en PPA - ", Iso2c2),
variable == "NY.GDP.PCAP.KD" ~ paste0("PIB/hab - ", Iso2c2))) |>
year_to_date() |>
filter(date >= as.Date("1990-01-01")) |>
ggplot() + xlab("") + ylab("PIB Par habitant ($ constants)") + theme_minimal() + add_flags +
geom_line(aes(x = date, y = value, color = variable2, linetype = variable2)) +
scale_color_manual(values = c("#000000", "#ED2939", "#000000", "#ED2939")) +
scale_linetype_manual(values = c("solid", "solid", "dashed", "dashed")) +
theme(legend.title = element_blank(),
legend.position = c(0.2, 0.85)) +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(0, 200000, 2000),
labels = dollar_format(a = 1))
NY.GDP.PCAP.PP.KD |>
bind_rows(NY.GDP.PCAP.KD) |>
filter(iso2c %in% c("DE", "FR")) |>
left_join(iso2c, by = "iso2c") |>
mutate(Iso2c2 = gsub("Germany", "Allemagne", Iso2c),
variable2 = case_when(variable == "NY.GDP.PCAP.PP.KD" ~ paste0("PIB/hab en PPA - ", Iso2c2),
variable == "NY.GDP.PCAP.KD" ~ paste0("PIB/hab - ", Iso2c2))) |>
year_to_date() |>
ggplot() + xlab("") + ylab("PIB Par habitant") + theme_minimal() + add_flags +
geom_line(aes(x = date, y = value, color = variable2, linetype = variable2)) +
scale_color_manual(values = c("#000000", "#ED2939", "#000000", "#ED2939")) +
scale_linetype_manual(values = c("dashed", "dashed", "solid", "solid")) +
theme(legend.title = element_blank(),
legend.position = c(0.2, 0.85)) +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_continuous(breaks = seq(0, 200000, 2000),
labels = dollar_format(a = 1))
NY.GDP.PCAP.PP.KD |>
filter(iso2c %in% c("CH", "FR")) |>
year_to_date() |>
left_join(iso2c, by = "iso2c") |>
left_join(colors, by = c("Iso2c" = "country")) |>
ggplot() + xlab("") + ylab("GDP per capita, PPP") +
geom_line(aes(x = date, y = value, color = color)) +
theme_minimal() + scale_color_identity() + add_flags +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = c(seq(10000, 70000, 10000), seq(10000, 50000, 5000)),
labels = dollar_format(acc = 1))
NY.GDP.PCAP.PP.KD |>
bind_rows(NY.GDP.PCAP.KD) |>
filter(iso2c %in% c("CH", "FR")) |>
left_join(iso2c, by = "iso2c") |>
mutate(Iso2c2 = gsub("Switzerland", "Suisse", Iso2c),
variable2 = case_when(variable == "NY.GDP.PCAP.PP.KD" ~ paste0("PIB/hab en PPA - ", Iso2c2),
variable == "NY.GDP.PCAP.KD" ~ paste0("PIB/hab - ", Iso2c2))) |>
year_to_date() |>
ggplot() + xlab("") + ylab("PIB Par habitant") + theme_minimal() + add_flags +
geom_line(aes(x = date, y = value, color = variable2, linetype = variable2)) +
scale_color_manual(values = c("#002395", "#FF0000", "#002395", "#FF0000")) +
scale_linetype_manual(values = c("dashed", "dashed", "solid", "solid")) +
theme(legend.title = element_blank(),
legend.position = c(0.2, 0.85)) +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(0, 200000, 5000),
labels = dollar_format(a = 1))
NY.GDP.PCAP.PP.KD |>
bind_rows(NY.GDP.PCAP.KD) |>
filter(iso2c %in% c("CH", "FR")) |>
left_join(iso2c, by = "iso2c") |>
mutate(Iso2c2 = gsub("Switzerland", "Suisse", Iso2c),
variable2 = case_when(variable == "NY.GDP.PCAP.PP.KD" ~ paste0("PIB/hab en PPA - ", Iso2c2),
variable == "NY.GDP.PCAP.KD" ~ paste0("PIB/hab - ", Iso2c2))) |>
year_to_date() |>
ggplot() + xlab("") + ylab("PIB Par habitant") + theme_minimal() + add_flags +
geom_line(aes(x = date, y = value, color = variable2, linetype = variable2)) +
scale_color_manual(values = c("#002395", "#FF0000", "#002395", "#FF0000")) +
scale_linetype_manual(values = c("dashed", "dashed", "solid", "solid")) +
theme(legend.title = element_blank(),
legend.position = c(0.2, 0.85)) +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_continuous(breaks = seq(0, 200000, 5000),
labels = dollar_format(a = 1))
NY.GDP.PCAP.PP.KD |>
filter(iso2c %in% c("US", "XC")) |>
left_join(iso2c, by = "iso2c") |>
mutate(Iso2c = ifelse(iso2c == "XC", "Europe", Iso2c)) |>
year_to_date() |>
filter(date >= as.Date("1999-01-01")) |>
left_join(colors, by = c("Iso2c" = "country")) |>
mutate(color = ifelse(iso2c == "XC", color2, color)) |>
group_by(iso2c, Iso2c) |>
arrange(date) |>
mutate(value = 100*value/value[1]) |>
ggplot() + xlab("") + ylab("GDP per capita, PPP, 100 = 1999") +
geom_line(aes(x = date, y = value, color = color)) +
theme_minimal() + scale_color_identity() + add_flags +
scale_x_date(breaks = c(seq(1999, 2100, 5), seq(2002, 2100, 5)) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(100, 400, 5))
NY.GDP.PCAP.PP.KD |>
bind_rows(NY.GDP.PCAP.KD) |>
filter(iso2c %in% c("US", "XC")) |>
left_join(iso2c, by = "iso2c") |>
mutate(Iso2c2 = case_when(iso2c == "US" ~ "Etats-Unis",
iso2c == "XC" ~ "Zone euro"),
variable2 = case_when(variable == "NY.GDP.PCAP.PP.KD" ~ paste0("PIB/hab en PPA - ", Iso2c2),
variable == "NY.GDP.PCAP.KD" ~ paste0("PIB/hab - ", Iso2c2))) |>
year_to_date() |>
ggplot() + xlab("") + ylab("PIB Par habitant") + theme_minimal() + add_flags +
geom_line(aes(x = date, y = value, color = variable2, linetype = variable2)) +
scale_color_manual(values = c("#3C3B6E", "#FFCC00", "#3C3B6E", "#FFCC00")) +
scale_linetype_manual(values = c("dashed", "dashed", "solid", "solid")) +
theme(legend.title = element_blank(),
legend.position = c(0.2, 0.85)) +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(0, 200000, 5000),
labels = dollar_format(a = 1))
NY.GDP.PCAP.PP.KD |>
bind_rows(NY.GDP.PCAP.KD) |>
filter(iso2c %in% c("US", "XC")) |>
left_join(iso2c, by = "iso2c") |>
mutate(Iso2c2 = case_when(iso2c == "US" ~ "Etats-Unis",
iso2c == "XC" ~ "Zone euro"),
variable2 = case_when(variable == "NY.GDP.PCAP.PP.KD" ~ paste0("PIB/hab en PPA - ", Iso2c2),
variable == "NY.GDP.PCAP.KD" ~ paste0("PIB/hab - ", Iso2c2))) |>
year_to_date() |>
filter(date >= as.Date("1990-01-01")) |>
ggplot() + xlab("") + ylab("PIB Par habitant") + theme_minimal() + add_flags +
geom_line(aes(x = date, y = value, color = variable2, linetype = variable2)) +
scale_color_manual(values = c("#3C3B6E", "#FFCC00", "#3C3B6E", "#FFCC00")) +
scale_linetype_manual(values = c("dashed", "dashed", "solid", "solid")) +
theme(legend.title = element_blank(),
legend.position = c(0.2, 0.85)) +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(0, 200000, 5000),
labels = dollar_format(a = 1))
NY.GDP.PCAP.PP.KD |>
bind_rows(NY.GDP.PCAP.KD) |>
filter(iso2c %in% c("US", "XC")) |>
left_join(iso2c, by = "iso2c") |>
mutate(Iso2c2 = case_when(iso2c == "US" ~ "Etats-Unis",
iso2c == "XC" ~ "Zone euro"),
variable2 = case_when(variable == "NY.GDP.PCAP.PP.KD" ~ paste0("PIB/hab en PPA - ", Iso2c2),
variable == "NY.GDP.PCAP.KD" ~ paste0("PIB/hab - ", Iso2c2))) |>
year_to_date() |>
filter(date >= as.Date("1999-01-01")) |>
ggplot() + xlab("") + ylab("PIB Par habitant") + theme_minimal() + add_flags +
geom_line(aes(x = date, y = value, color = variable2, linetype = variable2)) +
scale_color_manual(values = c("#3C3B6E", "#FFCC00", "#3C3B6E", "#FFCC00")) +
scale_linetype_manual(values = c("dashed", "dashed", "solid", "solid")) +
theme(legend.title = element_blank(),
legend.position = c(0.2, 0.85)) +
scale_x_date(breaks = c(seq(1999, 2100, 5), seq(2002, 2100, 5)) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(0, 200000, 5000),
labels = dollar_format(a = 1))
NY.GDP.PCAP.PP.KD |>
bind_rows(NY.GDP.PCAP.KD) |>
filter(iso2c %in% c("US", "XC")) |>
left_join(iso2c, by = "iso2c") |>
mutate(Iso2c2 = case_when(iso2c == "US" ~ "Etats-Unis",
iso2c == "XC" ~ "Zone euro"),
variable2 = case_when(variable == "NY.GDP.PCAP.PP.KD" ~ paste0("PIB/hab en PPA - ", Iso2c2),
variable == "NY.GDP.PCAP.KD" ~ paste0("PIB/hab - ", Iso2c2))) |>
year_to_date() |>
filter(date >= as.Date("1999-01-01")) |>
group_by(variable2) |>
arrange(date) |>
mutate(value = 100*value/value[1]) |>
ggplot() + xlab("") + ylab("PIB Par habitant") + theme_minimal() +
geom_line(aes(x = date, y = value, color = variable2, linetype = variable2)) +
scale_color_manual(values = c("#3C3B6E", "#FFCC00", "#3C3B6E", "#FFCC00")) +
scale_linetype_manual(values = c("dashed", "dashed", "solid", "solid")) +
theme(legend.title = element_blank(),
legend.position = c(0.2, 0.85)) +
scale_x_date(breaks = c(seq(1999, 2100, 5), seq(2002, 2100, 5)) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(100, 300, 10))
NY.GDP.PCAP.PP.KD |>
# XC: Euro area
filter(iso2c %in% c("US", "XC", "FR")) |>
left_join(iso2c, by = "iso2c") |>
mutate(Iso2c = ifelse(iso2c == "XC", "Europe", Iso2c)) |>
year_to_date() |>
left_join(colors, by = c("Iso2c" = "country")) |>
mutate(color = ifelse(iso2c == "XC", color2, color)) |>
ggplot() + xlab("") + ylab("GDP per capita, PPP") +
geom_line(aes(x = date, y = value, color = color)) +
theme_minimal() + scale_color_identity() + add_flags +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_continuous(breaks = seq(0, 80000, 5000),
labels = dollar_format(acc = 1))
NY.GDP.PCAP.PP.KD |>
filter(iso2c %in% c("US", "XC", "FR")) |>
left_join(iso2c, by = "iso2c") |>
mutate(Iso2c = ifelse(iso2c == "XC", "Europe", Iso2c)) |>
year_to_date() |>
left_join(colors, by = c("Iso2c" = "country")) |>
mutate(color = ifelse(iso2c == "XC", color2, color)) |>
group_by(iso2c, Iso2c) |>
arrange(date) |>
mutate(value = 100*value/value[1]) |>
ggplot() + xlab("") + ylab("GDP per capita, PPP, 100 = 1990") +
geom_line(aes(x = date, y = value, color = color)) +
theme_minimal() + scale_color_identity() + add_flags +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(100, 400, 10))
NY.GDP.PCAP.PP.KD |>
filter(iso2c %in% c("US", "XC", "FR")) |>
left_join(iso2c, by = "iso2c") |>
mutate(Iso2c = ifelse(iso2c == "XC", "Europe", Iso2c)) |>
year_to_date() |>
left_join(colors, by = c("Iso2c" = "country")) |>
mutate(color = ifelse(iso2c == "XC", color2, color)) |>
group_by(iso2c, Iso2c) |>
arrange(date) |>
filter(date >= as.Date("2006-01-01")) |>
mutate(value = 100*value/value[1]) |>
ggplot() + xlab("") + ylab("GDP per capita, PPP, 100 = 2006") +
geom_line(aes(x = date, y = value, color = color)) +
theme_minimal() + scale_color_identity() + add_flags +
scale_x_date(breaks = seq(1950, 2100, 1) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(10, 400, 2))
NY.GDP.PCAP.PP.KD |>
filter(iso2c %in% c("US", "XC", "FR")) |>
left_join(iso2c, by = "iso2c") |>
mutate(Iso2c = ifelse(iso2c == "XC", "Europe", Iso2c)) |>
year_to_date() |>
left_join(colors, by = c("Iso2c" = "country")) |>
mutate(color = ifelse(iso2c == "XC", color2, color)) |>
group_by(iso2c, Iso2c) |>
arrange(date) |>
filter(date >= as.Date("2007-01-01")) |>
mutate(value = 100*value/value[1]) |>
ggplot() + xlab("") + ylab("GDP per capita, PPP, 100 = 2007") +
geom_line(aes(x = date, y = value, color = color)) +
theme_minimal() + scale_color_identity() + add_flags +
scale_x_date(breaks = seq(1950, 2100, 1) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(10, 400, 2))
NY.GDP.PCAP.PP.KD |>
filter(iso2c %in% c("US", "XC", "FR")) |>
left_join(iso2c, by = "iso2c") |>
mutate(Iso2c = ifelse(iso2c == "XC", "Europe", Iso2c)) |>
year_to_date() |>
left_join(colors, by = c("Iso2c" = "country")) |>
mutate(color = ifelse(iso2c == "XC", color2, color)) |>
group_by(iso2c, Iso2c) |>
arrange(date) |>
filter(date >= as.Date("2008-01-01")) |>
mutate(value = 100*value/value[1]) |>
ggplot() + xlab("") + ylab("GDP per capita, PPP, 100 = 2008") +
geom_line(aes(x = date, y = value, color = color)) +
theme_minimal() + scale_color_identity() + add_flags +
scale_x_date(breaks = seq(1950, 2100, 1) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(10, 400, 2))
NY.GDP.PCAP.PP.KD |>
filter(iso2c %in% c("US", "ES", "IT", "FR", "CH", "DE")) |>
left_join(iso2c, by = "iso2c") |>
year_to_date() |>
left_join(colors, by = c("Iso2c" = "country")) |>
ggplot() + xlab("") + ylab("GDP per capita, PPP") +
geom_line(aes(x = date, y = value, color = color)) +
theme_minimal() + scale_color_identity() + add_flags +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_continuous(breaks = seq(0, 80000, 5000),
labels = dollar_format(acc = 1))
NY.GDP.PCAP.PP.KD |>
filter(iso2c %in% c("US", "ES", "IT", "FR", "CH", "DE")) |>
left_join(iso2c, by = "iso2c") |>
year_to_date() |>
left_join(colors, by = c("Iso2c" = "country")) |>
ggplot() + xlab("") + ylab("GDP per capita, PPP") +
geom_line(aes(x = date, y = value, color = color)) +
theme_minimal() + scale_color_identity() + add_flags +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(0, 80000, 5000),
labels = dollar_format(acc = 1))
NY.GDP.PCAP.PP.KD |>
filter(iso2c %in% c("US", "ES", "IT", "FR", "CH", "DE")) |>
left_join(iso2c, by = "iso2c") |>
year_to_date() |>
group_by(iso2c, Iso2c) |>
arrange(date) |>
mutate(value = 100*value/value[1]) |>
left_join(colors, by = c("Iso2c" = "country")) |>
ggplot() + xlab("") + ylab("GDP per capita, PPP, 100 = 1990") +
geom_line(aes(x = date, y = value, color = color)) +
theme_minimal() + scale_color_identity() + add_flags +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(100, 400, 10))
NY.GDP.PCAP.PP.KD |>
filter(iso2c %in% c("US", "GB", "ES", "IT", "FR", "CH")) |>
left_join(iso2c, by = "iso2c") |>
year_to_date() |>
left_join(colors, by = c("Iso2c" = "country")) |>
ggplot() + xlab("") + ylab("GDP per capita, PPP") +
geom_line(aes(x = date, y = value, color = color)) +
theme_minimal() + scale_color_identity() + add_flags +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_continuous(breaks = seq(0, 80000, 5000),
labels = dollar_format(acc = 1))
NY.GDP.PCAP.PP.KD |>
filter(iso2c %in% c("US", "GB", "ES", "IT", "FR", "CH")) |>
left_join(iso2c, by = "iso2c") |>
year_to_date() |>
left_join(colors, by = c("Iso2c" = "country")) |>
ggplot() + xlab("") + ylab("GDP per capita, PPP") +
geom_line(aes(x = date, y = value, color = color)) +
theme_minimal() + scale_color_identity() + add_flags +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(0, 80000, 5000),
labels = dollar_format(acc = 1))
NY.GDP.PCAP.PP.KD |>
filter(iso2c %in% c("PL", "HU", "FR")) |>
left_join(iso2c, by = "iso2c") |>
year_to_date() |>
group_by(iso2c) |>
mutate(value = 100*value /value[date == as.Date("1991-01-01")]) |>
filter(date >= as.Date("1990-01-01")) |>
ggplot() + geom_line(aes(x = date, y = value, color = Iso2c)) +
xlab("") + ylab("GDP per capita (constant 2010 USD)") + theme_minimal() +
scale_color_manual(values = c("#002395", "#436F4D", "#DC143C")) + add_flags +
theme(legend.title = element_blank(),
legend.position = c(0.2, 0.8)) +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(0, 400, 10))
NY.GDP.PCAP.PP.KD |>
filter(iso2c %in% c("JP")) |>
left_join(iso2c, by = "iso2c") |>
year_to_date() |>
ggplot() + geom_line(aes(x = date, y = value)) +
xlab("") + ylab("GDP per capita") + theme_minimal() +
theme(legend.title = element_blank(),
legend.position = c(0.2, 0.2)) +
scale_x_date(breaks = seq(1950, 2100, 2) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(0, 200000, 1000),
labels = dollar_format(a = 1))
NY.GDP.PCAP.PP.KD |>
filter(iso2c %in% c("FR", "DE")) |>
left_join(iso2c, by = "iso2c") |>
year_to_date() |>
left_join(colors, by = c("Iso2c" = "country")) |>
ggplot() + xlab("") + ylab("GDP per capita, PPP") +
geom_line(aes(x = date, y = value, color = color)) +
theme_minimal() + scale_color_identity() + add_flags +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_continuous(breaks = seq(0, 80000, 5000),
labels = dollar_format(acc = 1))
NY.GDP.PCAP.PP.KD |>
filter(iso2c %in% c("FR", "DE")) |>
left_join(iso2c, by = "iso2c") |>
year_to_date() |>
left_join(colors, by = c("Iso2c" = "country")) |>
ggplot() + xlab("") + ylab("GDP per capita, PPP") +
geom_line(aes(x = date, y = value, color = color)) +
theme_minimal() + scale_color_identity() + add_flags +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(0, 80000, 2000),
labels = dollar_format(acc = 1))
NY.GDP.PCAP.PP.KD |>
filter(iso2c %in% c("FR", "DE")) |>
left_join(iso2c, by = "iso2c") |>
group_by(iso2c) |>
mutate(value = 100*value/value[year == 1990]) |>
year_to_date() |>
ggplot() + xlab("") + ylab("PPP GDP per capita (1990 = 100)") + theme_minimal() +
geom_line(aes(x = date, y = value, color = Iso2c)) +
scale_color_manual(values = c("#002395", "#000000")) + add_flags +
theme(legend.position = "none") +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(100, 200, 5))
NY.GDP.PCAP.PP.KD |>
filter(iso2c %in% c("CN", "FR", "DE")) |>
left_join(iso2c, by = "iso2c") |>
year_to_date() |>
left_join(colors, by = c("Iso2c" = "country")) |>
ggplot() + xlab("") + ylab("GDP per capita, PPP") +
geom_line(aes(x = date, y = value, color = color)) +
theme_minimal() + scale_color_identity() + add_flags +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_continuous(breaks = seq(0, 80000, 5000),
labels = dollar_format(acc = 1))
NY.GDP.PCAP.PP.KD |>
filter(iso2c %in% c("ES", "IT", "PT")) |>
left_join(iso2c, by = "iso2c") |>
year_to_date() |>
left_join(colors, by = c("Iso2c" = "country")) |>
ggplot() + xlab("") + ylab("GDP per capita, PPP") +
geom_line(aes(x = date, y = value, color = color)) +
theme_minimal() + scale_color_identity() + add_flags +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_continuous(breaks = seq(0, 80000, 5000),
labels = dollar_format(acc = 1))
NY.GDP.PCAP.PP.KD |>
filter(iso2c %in% c("US", "GB", "ES")) |>
left_join(iso2c, by = "iso2c") |>
year_to_date() |>
left_join(colors, by = c("Iso2c" = "country")) |>
ggplot() + xlab("") + ylab("GDP per capita, PPP") +
geom_line(aes(x = date, y = value, color = color)) +
theme_minimal() + scale_color_identity() + add_flags +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_continuous(breaks = seq(0, 80000, 5000),
labels = dollar_format(acc = 1))
NY.GDP.PCAP.PP.KD |>
filter(iso2c %in% c("US", "GB", "ES")) |>
left_join(iso2c, by = "iso2c") |>
year_to_date() |>
left_join(colors, by = c("Iso2c" = "country")) |>
ggplot() + xlab("") + ylab("GDP per capita, PPP") +
geom_line(aes(x = date, y = value, color = color)) +
theme_minimal() + scale_color_identity() + add_flags +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(0, 80000, 5000),
labels = dollar_format(acc = 1))
NY.GDP.PCAP.PP.KD |>
filter(iso2c %in% c("AR", "CL", "VE")) |>
left_join(iso2c, by = "iso2c") |>
year_to_date() |>
left_join(colors, by = c("Iso2c" = "country")) |>
ggplot() + xlab("") + ylab("GDP per capita, PPP") +
geom_line(aes(x = date, y = value, color = color)) +
theme_minimal() + scale_color_identity() + add_flags +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_continuous(breaks = seq(0, 80000, 5000),
labels = dollar_format(acc = 1))
NY.GDP.PCAP.PP.KD |>
filter(iso2c %in% c("GR", "HK", "MX")) |>
left_join(iso2c, by = "iso2c") |>
mutate(Iso2c = ifelse(iso2c == "HK", "Hong Kong", Iso2c)) |>
year_to_date() |>
left_join(colors, by = c("Iso2c" = "country")) |>
ggplot() + xlab("") + ylab("GDP per capita, PPP") +
geom_line(aes(x = date, y = value, color = color)) +
theme_minimal() + scale_color_identity() + add_flags +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_continuous(breaks = seq(0, 80000, 5000),
labels = dollar_format(acc = 1))
NY.GDP.PCAP.PP.KD |>
filter(iso2c %in% c("GR", "HK", "MX")) |>
left_join(iso2c, by = "iso2c") |>
mutate(Iso2c = ifelse(iso2c == "HK", "Hong Kong", Iso2c)) |>
year_to_date() |>
left_join(colors, by = c("Iso2c" = "country")) |>
ggplot() + xlab("") + ylab("GDP per capita, PPP") +
geom_line(aes(x = date, y = value, color = color)) +
theme_minimal() + scale_color_identity() + add_flags +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_log10(breaks = seq(0, 80000, 5000),
labels = dollar_format(acc = 1))