OVGDP %>%
filter(COU %in% c("FRA", "DEU", "ITA", "ESP"),
vintage == 2021) %>%
left_join(COU, by = "COU") %>%
na.omit %>%
ggplot() + theme_minimal() + ylab("") + xlab("") +
geom_line(aes(x = date, y = value, color = COUNTRY)) +
geom_image(data = . %>%
filter(date == as.Date("2013-01-01")) %>%
mutate(image = paste0("../../icon/flag/", str_to_lower(gsub(" ", "-", COUNTRY)), ".png")),
aes(x = date, y = value, image = image), asp = 1.5) +
scale_color_manual(values = c("#002395", "#000000", "#009246", "#C60B1E")) +
scale_x_date(breaks = seq(1920, 2025, 5) %>% paste0("-01-01") %>% as.Date,
labels = date_format("%y")) +
theme(legend.position = c(0.2, 0.8),
legend.title = element_blank()) +
scale_y_log10(breaks = 100*seq(-60, 60, 5))