t_3302 |>
filter(line %in% c(49, 51, 52)) |>
left_join(gdp, by = "date") |>
ggplot() + geom_line(aes(x = date, y = value / gdp, color = Line, linetype = Line)) +
theme_minimal() + xlab("") + ylab("% du PIB") +
scale_x_date(breaks = seq(1960, 2100, 2) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_continuous(breaks = 0.01*seq(0, 500, .1),
labels = percent_format(accuracy = .1)) +
scale_color_manual(values = viridis(4)[1:3]) +
theme(legend.position = c(0.75, 0.15),
legend.title = element_blank())