ilc_di01 %>%
filter(quantile %in% c("D1", "D10"),
geo %in% c("FR", "DE"),
currency == "EUR",
indic_il == "SHARE") %>%
time_to_date %>%
left_join(geo, by = "geo") %>%
arrange(date, quantile, geo, values) %>%
spread(quantile, values) %>%
mutate(values = D10/D1) %>%
left_join(colors, by = c("Geo" = "country")) %>%
ggplot + geom_line(aes(x = date, y = values, color = color)) +
scale_color_identity() + add_2flags + theme_minimal() +
scale_x_date(breaks = as.Date(paste0(seq(1960, 2020, 5), "-01-01")),
labels = date_format("%y")) +
xlab("") + ylab("") +
scale_y_continuous(breaks = seq(0, 20, 1))