Export market shares - 5 years % change - tipsex10

Data - Eurostat

Structure

France, Germany, Italy, Spain, Netherlands

Goods

Code
tipsex10 |>
  filter(geo %in% c("FR", "DE", "NL", "ES", "IT"),
         bop_item == "G") |>
  year_to_date() |>
  
  add_flag_color("Geo") |>
  mutate(values = values/100) |>
  ggplot() + geom_line(aes(x = date, y = values, color = color)) + theme_minimal() +
  scale_color_identity() + add_flags +
  scale_x_date(breaks = as.Date(paste0(seq(1960, 2100, 2), "-01-01")),
               labels = date_format("%Y")) +
  xlab("") + ylab("Export market shares - 5 years % change - Goods") +
  scale_y_continuous(breaks = 0.01*seq(-300, 200, 5),
                     labels = scales::percent_format(accuracy = 1)) +
  geom_hline(yintercept = -0.06, linetype = "dashed")

Services

Code
tipsex10 |>
  filter(geo %in% c("FR", "DE", "NL", "ES", "IT"),
         bop_item == "S") |>
  year_to_date() |>
  
  add_flag_color("Geo") |>
  mutate(values = values/100) |>
  ggplot() + geom_line(aes(x = date, y = values, color = color)) + theme_minimal() +
  scale_color_identity() + add_flags +
  scale_x_date(breaks = as.Date(paste0(seq(1960, 2100, 2), "-01-01")),
               labels = date_format("%Y")) +
  xlab("") + ylab("Export market shares - 5 years % change - Services") +
  scale_y_continuous(breaks = 0.01*seq(-300, 200, 5),
                     labels = scales::percent_format(accuracy = 1)) +
  geom_hline(yintercept = -0.06, linetype = "dashed")

Goods & Services

Code
tipsex10 |>
  filter(geo %in% c("FR", "DE", "NL", "ES", "IT"),
         bop_item == "GS") |>
  year_to_date() |>
  
  add_flag_color("Geo") |>
  mutate(values = values/100) |>
  ggplot() + geom_line(aes(x = date, y = values, color = color)) + theme_minimal() +
  scale_color_identity() + add_flags +
  scale_x_date(breaks = as.Date(paste0(seq(1960, 2100, 2), "-01-01")),
               labels = date_format("%Y")) +
  xlab("") + ylab("Export market shares - 5 years % change - Goods, Services") +
  scale_y_continuous(breaks = 0.01*seq(-300, 200, 5),
                     labels = scales::percent_format(accuracy = 1)) +
  geom_hline(yintercept = -0.06, linetype = "dashed")