WEOJuly2021update_sheet3_cumul |>
bind_rows(WEOJuly2021update_sheet4_cumul) |>
unique() |>
filter(country %in% c("Germany", "France", "United States", "China", "Italy")) |>
left_join(colors, by = "country") |>
mutate(color = ifelse(country == "United States", color2, color)) |>
ggplot() + geom_line(aes(x = date, y = value, color = color)) +
scale_color_identity() + add_flags + theme_minimal() +
scale_x_date(breaks = seq(1920, 2100, 1) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
theme(legend.position = c(0.15, 0.9),
legend.title = element_blank()) +
scale_y_log10(breaks = seq(40, 200, 5)) +
ylab("100 = 2020-01-01") + xlab("") +
geom_hline(yintercept = 100, linetype = "dashed", color = "black")