NV.SRV.EMPL.KD %>%
filter(iso2c %in% c("CN", "FR", "DE")) %>%
left_join(iso2c, by = "iso2c") %>%
year_to_date %>%
left_join(colors, by = c("Iso2c" = "country")) %>%
mutate(value = value) %>%
ggplot(.) + geom_line(aes(x = date, y = value, color = color)) +
theme_minimal() + scale_color_identity() + add_flags + theme_minimal() +
theme(legend.title = element_blank(),
legend.position = c(0.15, 0.9)) +
scale_x_date(breaks = seq(1950, 2100, 2) %>% paste0("-01-01") %>% as.Date,
labels = date_format("%Y")) +
scale_y_continuous(breaks = seq(0, 200000, 10000),
labels = dollar_format()) +
xlab("") + ylab("Services, value added per worker")