Value added and its components by activity, ISIC rev4 - SNA_TABLE6A

Data - OECD


Info

Last observation: A: 2023 (N = 3)

First observation: A: 1960 (N = 302)

Last data update: 02 aoû 2026, 09:11. Last compile: 18 aoû 2026, 03:03

Structure

obsTime

Code
SNA_TABLE6A |>
  group_by(obsTime) |>
  summarise(Nobs = n()) |>
  arrange(desc(obsTime)) |>
  print_table_conditional()

Real Estate

Table

Code
SNA_TABLE6A |>
  filter(TRANSACT %in% c("B1GA", "B1_GE"),
         ACTIVITY %in% c("VL", "VTOT"),
         MEASURE == "C") |>
  left_join(SNA_TABLE6A_var$LOCATION, by = "LOCATION") |>
  year_to_date() |>
  mutate(VARIABLE = paste0(TRANSACT, "_", ACTIVITY)) |>
  select(VARIABLE, LOCATION, Location, date, obsValue) |>
  spread(VARIABLE, obsValue) |>
  mutate(value = B1GA_VL / B1_GE_VTOT) |>
  filter(!is.na(value)) |>
  group_by(LOCATION, Location) |>
  summarise(year1 = first(year(date)),
            value1 = first(value),
            year2 = last(year(date)),
            value2 = last(value)) %>%
  mutate_at(vars(value1, value2), funs(round(100*., digits = 1))) |>
  arrange(value2) |>
  mutate(Flag = gsub(" ", "-", str_to_lower(gsub(" ", "-", Location))),
         Flag = paste0('<img src="../../icon/flag/vsmall/', Flag, '.png" alt="Flag">')) |>
  select(Flag, everything()) %>%
  {if (is_html_output()) datatable(., filter = 'top', rownames = F, escape = F) else .}

France, Greece, Italy, Spain

All

Code
SNA_TABLE6A |>
  filter(TRANSACT %in% c("B1GA", "B1_GE"),
         ACTIVITY %in% c("VL", "VTOT"),
         LOCATION %in% c("GRC", "FRA", "ITA", "ESP"),
         MEASURE == "C") |>
  left_join(SNA_TABLE6A_var$LOCATION, by = "LOCATION") |>
  year_to_date() |>
  mutate(VARIABLE = paste0(TRANSACT, "_", ACTIVITY)) |>
  select(VARIABLE, Location, date, obsValue) |>
  spread(VARIABLE, obsValue) |>
  mutate(obsValue = B1GA_VL / B1_GE_VTOT) |>
  na.omit() |>
  left_join(colors, by = c("Location" = "country")) |>
  ggplot() + geom_line(aes(x = date, y = obsValue, color = color)) + 
  scale_color_identity() + add_4flags + theme_minimal() +
  scale_x_date(breaks = seq(1920, 2100, 5) |> paste0("-01-01") |> as.Date(),
               labels = date_format("%Y")) +
  scale_y_continuous(breaks = 0.01*seq(-7, 26, 1),
                     labels = scales::percent_format(accuracy = 1)) +
  ylab("Value Added in Real Estate (% of GDP)") + xlab("")

1995-

Code
SNA_TABLE6A |>
  filter(TRANSACT %in% c("B1GA", "B1_GE"),
         ACTIVITY %in% c("VL", "VTOT"),
         LOCATION %in% c("GRC", "FRA", "ITA", "ESP"),
         MEASURE == "C") |>
  left_join(SNA_TABLE6A_var$LOCATION, by = "LOCATION") |>
  year_to_date() |>
  filter(date >= as.Date("1995-01-01")) |>
  mutate(VARIABLE = paste0(TRANSACT, "_", ACTIVITY)) |>
  select(VARIABLE, Location, date, obsValue) |>
  spread(VARIABLE, obsValue) |>
  mutate(obsValue = B1GA_VL / B1_GE_VTOT) |>
  na.omit() |>
  left_join(colors, by = c("Location" = "country")) |>
  ggplot() + geom_line(aes(x = date, y = obsValue, color = color)) + 
  scale_color_identity() + add_4flags + theme_minimal() +
  scale_x_date(breaks = seq(1920, 2100, 5) |> paste0("-01-01") |> as.Date(),
               labels = date_format("%Y")) +
  scale_y_continuous(breaks = 0.01*seq(-7, 26, 1),
                     labels = scales::percent_format(accuracy = 1)) +
  ylab("Value Added in Real Estate (% of GDP)") + xlab("")

France, Germany, US

Code
SNA_TABLE6A |>
  filter(TRANSACT %in% c("B1GA", "B1_GE"),
         ACTIVITY %in% c("VL", "VTOT"),
         LOCATION %in% c("FRA", "DEU", "USA"),
         MEASURE == "C") |>
  left_join(SNA_TABLE6A_var$LOCATION, by = "LOCATION") |>
  year_to_date() |>
  mutate(VARIABLE = paste0(TRANSACT, "_", ACTIVITY)) |>
  select(VARIABLE, Location, date, obsValue) |>
  spread(VARIABLE, obsValue) |>
  mutate(obsValue = B1GA_VL / B1_GE_VTOT) |>
  na.omit() |>
  left_join(colors, by = c("Location" = "country")) |>
  ggplot() + geom_line(aes(x = date, y = obsValue, color = color)) + 
  scale_color_identity() + add_3flags + theme_minimal() +
  scale_x_date(breaks = seq(1920, 2100, 5) |> paste0("-01-01") |> as.Date(),
               labels = date_format("%Y")) +
  scale_y_continuous(breaks = 0.01*seq(-7, 26, 1),
                     labels = scales::percent_format(accuracy = 1)) +
  ylab("Value Added in Real Estate (% of GDP)") + xlab("")

New Zealand, UK, US

Code
SNA_TABLE6A |>
  filter(TRANSACT %in% c("B1GA", "B1_GE"),
         ACTIVITY %in% c("VL", "VTOT"),
         LOCATION %in% c("GBR", "NZL", "USA"),
         MEASURE == "C") |>
  left_join(SNA_TABLE6A_var$LOCATION, by = "LOCATION") |>
  year_to_date() |>
  mutate(VARIABLE = paste0(TRANSACT, "_", ACTIVITY)) |>
  select(VARIABLE, Location, date, obsValue) |>
  spread(VARIABLE, obsValue) |>
  mutate(obsValue = B1GA_VL / B1_GE_VTOT) |>
  na.omit() |>
  left_join(colors, by = c("Location" = "country")) |>
  ggplot() + geom_line(aes(x = date, y = obsValue, color = color)) + 
  scale_color_identity() + add_3flags + theme_minimal() +
  scale_x_date(breaks = seq(1920, 2100, 5) |> paste0("-01-01") |> as.Date(),
               labels = date_format("%Y")) +
  scale_y_continuous(breaks = 0.01*seq(-7, 26, 1),
                     labels = scales::percent_format(accuracy = 1)) +
  ylab("Value Added in Real Estate (% of GDP)") + xlab("")

Low Manufacturing

Table

Code
SNA_TABLE6A |>
  filter(TRANSACT %in% c("B1GA", "B1_GE"),
         ACTIVITY %in% c("VC", "VTOT"),
         MEASURE == "C") |>
  left_join(SNA_TABLE6A_var$LOCATION, by = "LOCATION") |>
  year_to_date() |>
  mutate(VARIABLE = paste0(TRANSACT, "_", ACTIVITY)) |>
  select(VARIABLE, LOCATION, Location, date, obsValue) |>
  spread(VARIABLE, obsValue) |>
  mutate(value = B1GA_VC / B1_GE_VTOT) |>
  filter(!is.na(value)) |>
  group_by(LOCATION, Location) |>
  summarise(year1 = first(year(date)),
            value1 = first(value),
            year2 = last(year(date)),
            value2 = last(value)) %>%
  mutate_at(vars(value1, value2), funs(round(100*., digits = 1))) |>
  arrange(value2) |>
  mutate(Flag = gsub(" ", "-", str_to_lower(gsub(" ", "-", Location))),
         Flag = paste0('<img src="../../icon/flag/vsmall/', Flag, '.png" alt="Flag">')) |>
  select(Flag, everything()) %>%
  {if (is_html_output()) datatable(., filter = 'top', rownames = F, escape = F) else .}

Luxembourg, Cyprus, Australia

Code
SNA_TABLE6A |>
  filter(TRANSACT %in% c("B1GA", "B1_GE"),
         ACTIVITY %in% c("VC", "VTOT"),
         LOCATION %in% c("LUX", "CYP", "AUS"),
         MEASURE == "C") |>
  left_join(SNA_TABLE6A_var$LOCATION, by = "LOCATION") |>
  year_to_date() |>
  mutate(VARIABLE = paste0(TRANSACT, "_", ACTIVITY)) |>
  select(VARIABLE, Location, date, obsValue) |>
  spread(VARIABLE, obsValue) |>
  mutate(obsValue = B1GA_VC / B1_GE_VTOT) |>
  na.omit() |>
  left_join(colors, by = c("Location" = "country")) |>
  ggplot() + geom_line(aes(x = date, y = obsValue, color = color)) + 
  scale_color_identity() + add_3flags + theme_minimal() +
  scale_x_date(breaks = seq(1920, 2100, 5) |> paste0("-01-01") |> as.Date(),
               labels = date_format("%Y")) +
  scale_y_continuous(breaks = 0.01*seq(-7, 26, 1),
                     labels = scales::percent_format(accuracy = 1)) +
  ylab("Value Added in Manufacturing (% of GDP)") + xlab("")

Albania, Norway, Greece

Code
SNA_TABLE6A |>
  filter(TRANSACT %in% c("B1GA", "B1_GE"),
         ACTIVITY %in% c("VC", "VTOT"),
         LOCATION %in% c("ALB", "NOR", "GRC"),
         MEASURE == "C") |>
  left_join(SNA_TABLE6A_var$LOCATION, by = "LOCATION") |>
  year_to_date() |>
  mutate(VARIABLE = paste0(TRANSACT, "_", ACTIVITY)) |>
  select(VARIABLE, Location, date, obsValue) |>
  spread(VARIABLE, obsValue) |>
  mutate(obsValue = B1GA_VC / B1_GE_VTOT) |>
  na.omit() |>
  left_join(colors, by = c("Location" = "country")) |>
  ggplot() + geom_line(aes(x = date, y = obsValue, color = color)) + 
  scale_color_identity() + add_3flags + theme_minimal() +
  scale_x_date(breaks = seq(1920, 2100, 5) |> paste0("-01-01") |> as.Date(),
               labels = date_format("%Y")) +
  scale_y_continuous(breaks = 0.01*seq(-7, 26, 1),
                     labels = scales::percent_format(accuracy = 1)) +
  ylab("Value Added in Manufacturing (% of GDP)") + xlab("")

Malta, Iceland, United Kingdom

Code
SNA_TABLE6A |>
  filter(TRANSACT %in% c("B1GA", "B1_GE"),
         ACTIVITY %in% c("VC", "VTOT"),
         LOCATION %in% c("MLT", "ISL", "GBR"),
         MEASURE == "C") |>
  left_join(SNA_TABLE6A_var$LOCATION, by = "LOCATION") |>
  year_to_date() |>
  mutate(VARIABLE = paste0(TRANSACT, "_", ACTIVITY)) |>
  select(LOCATION, VARIABLE, Location, date, obsValue) |>
  spread(VARIABLE, obsValue) |>
  mutate(obsValue = B1GA_VC / B1_GE_VTOT) |>
  na.omit() |>
  left_join(colors, by = c("Location" = "country")) |>
  mutate(color = ifelse(LOCATION == "ISL", color2, color)) |>
  ggplot() + geom_line(aes(x = date, y = obsValue, color = color)) + 
  scale_color_identity() + add_3flags + theme_minimal() +
  scale_x_date(breaks = seq(1920, 2100, 5) |> paste0("-01-01") |> as.Date(),
               labels = date_format("%Y")) +
  scale_y_continuous(breaks = 0.01*seq(-7, 26, 1),
                     labels = scales::percent_format(accuracy = 1)) +
  ylab("Value Added in Manufacturing (% of GDP)") + xlab("")

Chile, Canada, France

All

Code
SNA_TABLE6A |>
  filter(TRANSACT %in% c("B1GA", "B1_GE"),
         ACTIVITY %in% c("VC", "VTOT"),
         LOCATION %in% c("CHL", "CAN", "FRA"),
         MEASURE == "C") |>
  left_join(SNA_TABLE6A_var$LOCATION, by = "LOCATION") |>
  year_to_date() |>
  mutate(VARIABLE = paste0(TRANSACT, "_", ACTIVITY)) |>
  select(LOCATION, VARIABLE, Location, date, obsValue) |>
  spread(VARIABLE, obsValue) |>
  mutate(obsValue = B1GA_VC / B1_GE_VTOT) |>
  na.omit() |>
  left_join(colors, by = c("Location" = "country")) |>
  ggplot() + geom_line(aes(x = date, y = obsValue, color = color)) + 
  scale_color_identity() + add_3flags + theme_minimal() +
  scale_x_date(breaks = seq(1920, 2100, 5) |> paste0("-01-01") |> as.Date(),
               labels = date_format("%Y")) +
  scale_y_continuous(breaks = 0.01*seq(-7, 26, 1),
                     labels = scales::percent_format(accuracy = 1)) +
  ylab("Value Added in Manufacturing (% of GDP)") + xlab("")

2007-

Code
SNA_TABLE6A |>
  filter(TRANSACT %in% c("B1GA", "B1_GE"),
         ACTIVITY %in% c("VC", "VTOT"),
         LOCATION %in% c("CHL", "CAN", "FRA"),
         MEASURE == "C") |>
  left_join(SNA_TABLE6A_var$LOCATION, by = "LOCATION") |>
  year_to_date() |>
  filter(date >= as.Date("2007-01-01")) |>
  mutate(VARIABLE = paste0(TRANSACT, "_", ACTIVITY)) |>
  select(LOCATION, VARIABLE, Location, date, obsValue) |>
  spread(VARIABLE, obsValue) |>
  mutate(obsValue = B1GA_VC / B1_GE_VTOT) |>
  na.omit() |>
  left_join(colors, by = c("Location" = "country")) |>
  ggplot() + geom_line(aes(x = date, y = obsValue, color = color)) + 
  scale_color_identity() + add_3flags + theme_minimal() +
  scale_x_date(breaks = seq(1920, 2100, 1) |> paste0("-01-01") |> as.Date(),
               labels = date_format("%Y")) +
  scale_y_continuous(breaks = 0.01*seq(-7, 26, 1),
                     labels = scales::percent_format(accuracy = 1)) +
  ylab("Value Added in Manufacturing (% of GDP)") + xlab("")

New Zealand, Latvia, Brazil

Code
SNA_TABLE6A |>
  filter(TRANSACT %in% c("B1GA", "B1_GE"),
         ACTIVITY %in% c("VC", "VTOT"),
         LOCATION %in% c("NZL", "LVA", "BRA"),
         MEASURE == "C") |>
  left_join(SNA_TABLE6A_var$LOCATION, by = "LOCATION") |>
  year_to_date() |>
  mutate(VARIABLE = paste0(TRANSACT, "_", ACTIVITY)) |>
  select(LOCATION, VARIABLE, Location, date, obsValue) |>
  spread(VARIABLE, obsValue) |>
  mutate(obsValue = B1GA_VC / B1_GE_VTOT) |>
  na.omit() |>
  left_join(colors, by = c("Location" = "country")) |>
  mutate(color = ifelse(LOCATION == "ISL", color2, color)) |>
  ggplot() + geom_line(aes(x = date, y = obsValue, color = color)) + 
  scale_color_identity() + add_3flags + theme_minimal() +
  scale_x_date(breaks = seq(1920, 2100, 5) |> paste0("-01-01") |> as.Date(),
               labels = date_format("%Y")) +
  scale_y_continuous(breaks = 0.01*seq(-7, 26, 1),
                     labels = scales::percent_format(accuracy = 1)) +
  ylab("Value Added in Manufacturing (% of GDP)") + xlab("")

Netherlands, United States, Costa Rica

Code
SNA_TABLE6A |>
  filter(TRANSACT %in% c("B1GA", "B1_GE"),
         ACTIVITY %in% c("VC", "VTOT"),
         LOCATION %in% c("NLD", "USA", "CRI"),
         MEASURE == "C") |>
  left_join(SNA_TABLE6A_var$LOCATION, by = "LOCATION") |>
  year_to_date() |>
  mutate(VARIABLE = paste0(TRANSACT, "_", ACTIVITY)) |>
  select(LOCATION, VARIABLE, Location, date, obsValue) |>
  spread(VARIABLE, obsValue) |>
  mutate(obsValue = B1GA_VC / B1_GE_VTOT) |>
  na.omit() |>
  left_join(colors, by = c("Location" = "country")) |>
  mutate(color = ifelse(LOCATION == "ISL", color2, color)) |>
  ggplot() + geom_line(aes(x = date, y = obsValue, color = color)) + 
  scale_color_identity() + add_3flags + theme_minimal() +
  scale_x_date(breaks = seq(1920, 2100, 5) |> paste0("-01-01") |> as.Date(),
               labels = date_format("%Y")) +
  scale_y_continuous(breaks = 0.01*seq(-7, 26, 1),
                     labels = scales::percent_format(accuracy = 1)) +
  ylab("Value Added in Manufacturing (% of GDP)") + xlab("")

Spain, Colombia, Portugal

Code
SNA_TABLE6A |>
  filter(TRANSACT %in% c("B1GA", "B1_GE"),
         ACTIVITY %in% c("VC", "VTOT"),
         LOCATION %in% c("ESP", "COL", "PRT"),
         MEASURE == "C") |>
  left_join(SNA_TABLE6A_var$LOCATION, by = "LOCATION") |>
  year_to_date() |>
  mutate(VARIABLE = paste0(TRANSACT, "_", ACTIVITY)) |>
  select(LOCATION, VARIABLE, Location, date, obsValue) |>
  spread(VARIABLE, obsValue) |>
  mutate(obsValue = B1GA_VC / B1_GE_VTOT) |>
  na.omit() |>
  left_join(colors, by = c("Location" = "country")) |>
  mutate(color = ifelse(LOCATION == "ISL", color2, color)) |>
  ggplot() + geom_line(aes(x = date, y = obsValue, color = color)) + 
  scale_color_identity() + add_3flags + theme_minimal() +
  scale_x_date(breaks = seq(1920, 2100, 5) |> paste0("-01-01") |> as.Date(),
               labels = date_format("%Y")) +
  scale_y_continuous(breaks = 0.01*seq(-7, 26, 1),
                     labels = scales::percent_format(accuracy = 1)) +
  ylab("Value Added in Manufacturing (% of GDP)") + xlab("")

High Manufacturing

Table

Code
SNA_TABLE6A |>
  filter(TRANSACT %in% c("B1GA", "B1_GE"),
         ACTIVITY %in% c("VC", "VTOT"),
         MEASURE == "C") |>
  left_join(SNA_TABLE6A_var$LOCATION, by = "LOCATION") |>
  year_to_date() |>
  mutate(VARIABLE = paste0(TRANSACT, "_", ACTIVITY)) |>
  select(VARIABLE, LOCATION, Location, date, obsValue) |>
  spread(VARIABLE, obsValue) |>
  mutate(value = B1GA_VC / B1_GE_VTOT) |>
  filter(!is.na(value)) |>
  group_by(LOCATION, Location) |>
  summarise(year1 = first(year(date)),
            value1 = first(value),
            year2 = last(year(date)),
            value2 = last(value)) %>%
  mutate_at(vars(value1, value2), funs(round(100*., digits = 1))) |>
  arrange(-value2) |>
  mutate(Flag = gsub(" ", "-", str_to_lower(gsub(" ", "-", Location))),
         Flag = paste0('<img src="../../icon/flag/vsmall/', Flag, '.png" alt="Flag">')) |>
  select(Flag, everything()) %>%
  {if (is_html_output()) datatable(., filter = 'top', rownames = F, escape = F) else .}

Ireland, South Korea, Czech Republic

Code
SNA_TABLE6A |>
  filter(TRANSACT %in% c("B1GA", "B1_GE"),
         ACTIVITY %in% c("VC", "VTOT"),
         LOCATION %in% c("IRL", "KOR", "CZE"),
         MEASURE == "C") |>
  left_join(SNA_TABLE6A_var$LOCATION, by = "LOCATION") |>
  year_to_date() |>
  mutate(VARIABLE = paste0(TRANSACT, "_", ACTIVITY)) |>
  select(VARIABLE, Location, date, obsValue) |>
  spread(VARIABLE, obsValue) |>
  mutate(obsValue = B1GA_VC / B1_GE_VTOT) |>
  na.omit() |>
  left_join(colors, by = c("Location" = "country")) |>
  ggplot() + geom_line(aes(x = date, y = obsValue, color = color)) + 
  scale_color_identity() + add_3flags + theme_minimal() +
  scale_x_date(breaks = seq(1920, 2100, 5) |> paste0("-01-01") |> as.Date(),
               labels = date_format("%Y")) +
  scale_y_continuous(breaks = 0.01*seq(0, 40, 2),
                     labels = scales::percent_format(accuracy = 1)) +
  ylab("Value Added in Manufacturing (% of GDP)") + xlab("")

Slovenia, Germany, Romania

Code
SNA_TABLE6A |>
  filter(TRANSACT %in% c("B1GA", "B1_GE"),
         ACTIVITY %in% c("VC", "VTOT"),
         LOCATION %in% c("SVN", "DEU", "ROU"),
         MEASURE == "C") |>
  left_join(SNA_TABLE6A_var$LOCATION, by = "LOCATION") |>
  year_to_date() |>
  mutate(VARIABLE = paste0(TRANSACT, "_", ACTIVITY)) |>
  select(VARIABLE, Location, date, obsValue) |>
  spread(VARIABLE, obsValue) |>
  mutate(obsValue = B1GA_VC / B1_GE_VTOT) |>
  na.omit() |>
  left_join(colors, by = c("Location" = "country")) |>
  ggplot() + geom_line(aes(x = date, y = obsValue, color = color)) + 
  scale_color_identity() + add_3flags + theme_minimal() +
  scale_x_date(breaks = seq(1920, 2100, 5) |> paste0("-01-01") |> as.Date(),
               labels = date_format("%Y")) +
  scale_y_continuous(breaks = 0.01*seq(0, 40, 1),
                     labels = scales::percent_format(accuracy = 1)) +
  ylab("Value Added in Manufacturing (% of GDP)") + xlab("")

Turkey, Switzerland, Slovak Republic

Code
SNA_TABLE6A |>
  filter(TRANSACT %in% c("B1GA", "B1_GE"),
         ACTIVITY %in% c("VC", "VTOT"),
         LOCATION %in% c("TUR", "CHE", "SVK"),
         MEASURE == "C") |>
  left_join(SNA_TABLE6A_var$LOCATION, by = "LOCATION") |>
  year_to_date() |>
  mutate(VARIABLE = paste0(TRANSACT, "_", ACTIVITY)) |>
  select(LOCATION, VARIABLE, Location, date, obsValue) |>
  spread(VARIABLE, obsValue) |>
  mutate(obsValue = B1GA_VC / B1_GE_VTOT) |>
  na.omit() |>
  left_join(colors, by = c("Location" = "country")) |>
  mutate(color = ifelse(LOCATION == "SVK", color2, color)) |>
  ggplot() + geom_line(aes(x = date, y = obsValue, color = color)) + 
  scale_color_identity() + add_3flags + theme_minimal() +
  scale_x_date(breaks = seq(1920, 2100, 5) |> paste0("-01-01") |> as.Date(),
               labels = date_format("%Y")) +
  scale_y_continuous(breaks = 0.01*seq(0, 40, 1),
                     labels = scales::percent_format(accuracy = 1)) +
  ylab("Value Added in Manufacturing (% of GDP)") + xlab("")

Manufacturing

Table

Code
SNA_TABLE6A |>
  filter(TRANSACT %in% c("B1GA", "B1_GE"),
         ACTIVITY %in% c("VC", "VTOT"),
         MEASURE == "C") |>
  left_join(SNA_TABLE6A_var$LOCATION, by = "LOCATION") |>
  year_to_date() |>
  mutate(VARIABLE = paste0(TRANSACT, "_", ACTIVITY)) |>
  select(VARIABLE, LOCATION, Location, date, obsValue) |>
  spread(VARIABLE, obsValue) |>
  mutate(value = B1GA_VC / B1_GE_VTOT) |>
  filter(!is.na(value)) |>
  group_by(LOCATION, Location) |>
  summarise(year1 = first(year(date)),
            value1 = first(value),
            year2 = last(year(date)),
            value2 = last(value)) %>%
  mutate_at(vars(value1, value2), funs(round(100*., digits = 1))) |>
  arrange(value2) |>
  mutate(Flag = gsub(" ", "-", str_to_lower(gsub(" ", "-", Location))),
         Flag = paste0('<img src="../../icon/flag/vsmall/', Flag, '.png" alt="Flag">')) |>
  select(Flag, everything()) %>%
  {if (is_html_output()) datatable(., filter = 'top', rownames = F, escape = F) else .}

France, Germany, US

Code
SNA_TABLE6A |>
  filter(TRANSACT %in% c("B1GA", "B1_GE"),
         ACTIVITY %in% c("VC", "VTOT"),
         LOCATION %in% c("FRA", "DEU", "USA"),
         MEASURE == "C") |>
  left_join(SNA_TABLE6A_var$LOCATION, by = "LOCATION") |>
  year_to_date() |>
  mutate(VARIABLE = paste0(TRANSACT, "_", ACTIVITY)) |>
  select(VARIABLE, Location, date, obsValue) |>
  spread(VARIABLE, obsValue) |>
  mutate(obsValue = B1GA_VC / B1_GE_VTOT) |>
  na.omit() |>
  left_join(colors, by = c("Location" = "country")) |>
  ggplot() + geom_line(aes(x = date, y = obsValue, color = color)) + 
  scale_color_identity() + add_3flags + theme_minimal() +
  scale_x_date(breaks = seq(1920, 2100, 5) |> paste0("-01-01") |> as.Date(),
               labels = date_format("%Y")) +
  scale_y_continuous(breaks = 0.01*seq(-7, 26, 1),
                     labels = scales::percent_format(accuracy = 1)) +
  ylab("Value Added in Manufacturing (% of GDP)") + xlab("")

Denmark, Switzerland, UK

Code
SNA_TABLE6A |>
  filter(TRANSACT %in% c("B1GA", "B1_GE"),
         ACTIVITY %in% c("VC", "VTOT"),
         LOCATION %in% c("GBR", "DNK", "CHE"),
         MEASURE == "C") |>
  left_join(SNA_TABLE6A_var$LOCATION, by = "LOCATION") |>
  year_to_date() |>
  mutate(VARIABLE = paste0(TRANSACT, "_", ACTIVITY)) |>
  select(VARIABLE, Location, date, obsValue) |>
  spread(VARIABLE, obsValue) |>
  mutate(obsValue = B1GA_VC / B1_GE_VTOT) |>
  na.omit() |>
  left_join(colors, by = c("Location" = "country")) |>
  ggplot() + geom_line(aes(x = date, y = obsValue, color = color)) + 
  scale_color_identity() + add_3flags + theme_minimal() +
  scale_x_date(breaks = seq(1920, 2100, 5) |> paste0("-01-01") |> as.Date(),
               labels = date_format("%Y")) +
  scale_y_continuous(breaks = 0.01*seq(-7, 26, 1),
                     labels = scales::percent_format(accuracy = 1)) +
  ylab("Value Added in Manufacturing (% of GDP)") + xlab("")

Spain, Italy, Portugal

Code
SNA_TABLE6A |>
  filter(TRANSACT %in% c("B1GA", "B1_GE"),
         ACTIVITY %in% c("VC", "VTOT"),
         LOCATION %in% c("PRT", "ESP", "ITA"),
         MEASURE == "C") |>
  left_join(SNA_TABLE6A_var$LOCATION, by = "LOCATION") |>
  year_to_date() |>
  mutate(VARIABLE = paste0(TRANSACT, "_", ACTIVITY)) |>
  select(VARIABLE, Location, date, obsValue) |>
  spread(VARIABLE, obsValue) |>
  mutate(obsValue = B1GA_VC / B1_GE_VTOT) |>
  na.omit() |>
  left_join(colors, by = c("Location" = "country")) |>
  ggplot() + geom_line(aes(x = date, y = obsValue, color = color)) + 
  scale_color_identity() + add_3flags + theme_minimal() +
  scale_x_date(breaks = seq(1920, 2100, 2) |> paste0("-01-01") |> as.Date(),
               labels = date_format("%Y")) +
  scale_y_continuous(breaks = 0.01*seq(-7, 26, 1),
                     labels = scales::percent_format(accuracy = 1)) +
  ylab("Value Added in Manufacturing (% of GDP)") + xlab("")

Norway, Sweden, Finland

Code
SNA_TABLE6A |>
  filter(TRANSACT %in% c("B1GA", "B1_GE"),
         ACTIVITY %in% c("VC", "VTOT"),
         LOCATION %in% c("NOR", "SWE", "FIN"),
         MEASURE == "C") |>
  left_join(SNA_TABLE6A_var$LOCATION, by = "LOCATION") |>
  year_to_date() |>
  mutate(VARIABLE = paste0(TRANSACT, "_", ACTIVITY)) |>
  select(VARIABLE, Location, date, obsValue) |>
  spread(VARIABLE, obsValue) |>
  mutate(obsValue = B1GA_VC / B1_GE_VTOT) |>
  na.omit() |>
  left_join(colors, by = c("Location" = "country")) |>
  ggplot() + geom_line(aes(x = date, y = obsValue, color = color)) + 
  scale_color_identity() + add_3flags + theme_minimal() +
  scale_x_date(breaks = seq(1920, 2100, 2) |> paste0("-01-01") |> as.Date(),
               labels = date_format("%Y")) +
  scale_y_continuous(breaks = 0.01*seq(0, 40, 2),
                     labels = scales::percent_format(accuracy = 1)) +
  ylab("Value Added in Manufacturing (% of GDP)") + xlab("")

South Korea, Australia, New Zealand

Code
SNA_TABLE6A |>
  filter(TRANSACT %in% c("B1GA", "B1_GE"),
         ACTIVITY %in% c("VC", "VTOT"),
         LOCATION %in% c("KOR", "NZL", "AUS"),
         MEASURE == "C") |>
  left_join(SNA_TABLE6A_var$LOCATION, by = "LOCATION") |>
  year_to_date() |>
  mutate(VARIABLE = paste0(TRANSACT, "_", ACTIVITY)) |>
  select(VARIABLE, Location, date, obsValue) |>
  spread(VARIABLE, obsValue) |>
  mutate(obsValue = B1GA_VC / B1_GE_VTOT) |>
  na.omit() |>
  left_join(colors, by = c("Location" = "country")) |>
  ggplot() + geom_line(aes(x = date, y = obsValue, color = color)) + 
  scale_color_identity() + add_3flags + theme_minimal() +
  scale_x_date(breaks = seq(1920, 2100, 2) |> paste0("-01-01") |> as.Date(),
               labels = date_format("%Y")) +
  scale_y_continuous(breaks = 0.01*seq(0, 40, 2),
                     labels = scales::percent_format(accuracy = 1)) +
  ylab("Value Added in Manufacturing (% of GDP)") + xlab("")