icw_sr_08 %>%
filter(time == "2015",
geo %in% c("UK", "FR", "DE"),
grepl("-", age) | age %in% c("Y_GE75", "Y_LT30")) %>%
mutate(age = ifelse(age == "Y_GE75", "Y75+", age),
age = ifelse(age == "Y_LT30", "Y30-", age)) %>%
mutate(age = ifelse(age == "Y_GE75", "Y75+", age)) %>%
left_join(geo, by = "geo") %>%
ggplot + geom_line(aes(x = age, y = values/100, color = Geo, group = Geo, linetype = Geo)) +
scale_color_manual(values = viridis(4)[1:3]) + theme_minimal() +
theme(legend.position = c(0.25, 0.15),
legend.title = element_blank()) +
xlab("Age") + ylab("Aggregate Penpens. to Consume by age") +
scale_y_continuous(breaks = 0.01*seq(-30, 100, 5),
labels = percent_format(accuracy = 1))