CM.MKT.LCAP.GD.ZS |>
filter(iso2c %in% c("IT", "FR", "DE")) |>
left_join(iso2c, by = "iso2c") |>
year_to_date() |>
add_flag_color("Iso2c") |>
mutate(value = value/100) |>
ggplot() + theme_minimal() + scale_color_identity() + add_flags +
geom_line(aes(x = date, y = value, color = color)) +
xlab("") + ylab("Market capitalization (% of GDP)") +
scale_x_date(breaks = seq(1950, 2100, 5) |> paste0("-01-01") |> as.Date(),
labels = date_format("%Y")) +
scale_y_continuous(breaks = 0.01*seq(-60, 400, 20),
labels = scales::percent_format(accuracy = 1))