Business enterprise R&D expenditure in high-tech sectors - NACE Rev. 2 - htec_sti_exp2

Data - Eurostat

Structure

Business R&D Expenditure in High-Tech Manufacturing

France, Germany, Japan, South Korea

Code
htec_sti_exp2 |>
  filter(geo %in% c("FR", "DE", "JP", "KR"),
         unit == "MIO_EUR",
         nace_r2 == "C_HTC") |>
  year_to_date() |>
  add_flag_color("Geo") |>
  mutate(values = values/1000) |>
  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(2005, 2100, 2), "-01-01")),
               labels = date_format("%Y")) +
  theme(legend.position = c(0.2, 0.85),
        legend.title = element_blank()) +
  xlab("") + ylab("R&D expenditure, high-tech manufacturing (Bn€)")

Share of Total Business R&D

Code
htec_sti_exp2 |>
  filter(geo %in% c("FR", "DE", "IT"),
         unit == "PC_TOT",
         nace_r2 == "C_HTC") |>
  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(2005, 2100, 2), "-01-01")),
               labels = date_format("%Y")) +
  theme(legend.position = c(0.2, 0.85),
        legend.title = element_blank()) +
  xlab("") + ylab("Share of total business R&D expenditure") +
  scale_y_continuous(labels = scales::percent_format(accuracy = 1))