lfsi_long_q %>%
filter(geo == "FR",
sex == "T",
s_adj == "SA",
unit != "THS_PER",
indic_em %in% c("E_E", "I_I")) %>%
filter(!is.na(values)) %>%
left_join(indic_em, by = "indic_em") %>%
select(indic_em, Indic_em, time, values) %>%
quarter_to_date() %>%
ggplot + theme_minimal() + xlab("") + ylab("") +
geom_line(aes(x = date, y = values/100, color = Indic_em)) +
scale_color_manual(values = viridis(3)[1:2]) +
scale_x_date(breaks = as.Date(paste0(seq(1960, 2022, 1), "-01-01")),
labels = date_format("%y")) +
theme(legend.position = c(0.3, 0.85),
legend.title = element_blank()) +
scale_y_continuous(breaks = 0.01*seq(0, 100, 1),
labels = scales::percent_format(acc = 1))