SL.UEM.TOTL.ZS %>%
year_to_date() %>%
filter(iso2c %in% c("SG", "PH", "ID"),
date >= as.Date("1990-01-01"),
date <= as.Date("2005-01-01")) %>%
left_join(iso2c, by = "iso2c") %>%
ggplot(.) + geom_line() + theme_minimal() +
aes(x = date, y = value/100, color = Iso2c, linetype = Iso2c) +
xlab("") + ylab("Unemployment, Total (% of labor force)") +
scale_color_manual(values = viridis(4)[1:3]) +
theme(legend.title = element_blank(),
legend.position = c(0.85, 0.85)) +
scale_x_date(breaks = seq(1900, 2100, 1) %>% paste0("-01-01") %>% as.Date,
labels = date_format("%Y")) +
scale_y_continuous(breaks = 0.01*seq(-100, 10000, 1),
labels = percent_format(a = 1)) +
geom_hline(yintercept = 0, linetype = "dashed", color = "grey")