EMP_2IND_NOC_RT_A %>%
year_to_date %>%
filter(ref_area %in% c("DEU", "FRA", "USA", "CHE")) %>%
left_join(ref_area, by = "ref_area") %>%
mutate(obs_value = obs_value/100) %>%
left_join(colors, by = c("Ref_area" = "country")) %>%
ggplot() + scale_color_identity() + add_flags + theme_minimal() +
geom_line(aes(x = date, y = obs_value, color = color)) +
scale_x_date(breaks = seq(1920, 2100, 2) %>% paste0("-01-01") %>% as.Date,
labels = date_format("%Y")) +
theme(legend.position = c(0.85, 0.8),
legend.title = element_blank()) +
scale_y_continuous(breaks = 0.01*seq(0, 90, 2),
labels = percent_format(accuracy = 1)) +
ylab("Industry (% of total employment)") + xlab("")