Agriculture, value added (% of GDP) - NV.AGR.TOTL.ZS

Data - WDI

Info

Last observation: 2025 (N = 11,367)

First observation: 1960 (N = 11,367)

Last data update: 14 aoû 2026, 20:11. Last compile: 14 aoû 2026, 20:49

Nobs - Javascript

Code
NV.AGR.TOTL.ZS |>
  left_join(iso2c, by = "iso2c") |>
  group_by(iso2c, Iso2c) |>
  mutate(value = round(value, 1)) |>
  summarise(Nobs = n(),
            `Year 1` = first(year),
            `Industry Share 1 (%)` = first(value),
            `Year 2` = last(year),
            `Industry Share 2 (%)` = last(value)) |>
  arrange(-Nobs) %>%
  {if (is_html_output()) datatable(., filter = 'top', rownames = F) else .}

1982: Southern Cone - Argentina, Chile, Uruguay

Code
NV.AGR.TOTL.ZS |>
  year_to_enddate() |>
  filter(iso2c %in% c("AR", "CL", "UY"),
         date >= as.Date("1976-01-01"),
            date <= as.Date("1986-01-01")) |>
  left_join(iso2c, by = "iso2c") |>
  mutate(value = value/100) |>
  left_join(colors, by = c("Iso2c" = "country")) |>
  ggplot() + 
  geom_line(aes(x = date, y = value, color = color)) + 
  theme_minimal() + scale_color_identity() + add_flags +
  theme(legend.title = element_blank(),
        legend.position = c(0.7, 0.9),
        legend.direction = "horizontal") +
  scale_x_date(breaks = seq(1950, 2100, 1) |> paste0("-01-01") |> as.Date(),
               labels = date_format("%Y")) +
  scale_y_continuous(breaks = 0.01*seq(-60, 60, 2),
                     labels = scales::percent_format(accuracy = 1)) +
  xlab("") + ylab("Agriculture, value added (% of GDP)")

1994: Mexico

Code
NV.AGR.TOTL.ZS |>
  year_to_enddate() |>
  filter(iso2c %in% c("MX"),
         date <= as.Date("1999-01-01"),
         date >= as.Date("1989-01-01")) |>
  left_join(iso2c, by = "iso2c") |>
  ggplot() + 
  geom_line(aes(x = date, y = value/100)) + 
  theme_minimal() + scale_color_manual(values = viridis(5)[1:4]) +
  theme(legend.title = element_blank(),
        legend.position = c(0.2, 0.8)) +
  scale_x_date(breaks = seq(1950, 2100, 1) |> paste0("-01-01") |> as.Date(),
               labels = date_format("%Y")) +
  scale_y_continuous(breaks = 0.01*seq(-60, 60, 1),
                     labels = scales::percent_format(accuracy = 1)) +
  xlab("") + ylab("Agriculture, value added (% of GDP)")

1997: East Asia - Indonesia, Korea, Malaysia, Thailand

Code
NV.AGR.TOTL.ZS |>
  year_to_enddate() |>
  filter(iso2c %in% c("ID", "KR", "MY", "TH"),
         date <= as.Date("2002-01-01"),
         date >= as.Date("1992-01-01")) |>
  left_join(iso2c, by = "iso2c") |>
  mutate(value = value/100) |>
  left_join(colors, by = c("Iso2c" = "country")) |>
  ggplot() + 
  geom_line(aes(x = date, y = value, color = color)) + 
  theme_minimal() + scale_color_identity() + add_flags +
  theme(legend.title = element_blank(),
        legend.position = c(0.2, 0.8)) +
  scale_x_date(breaks = seq(1950, 2100, 1) |> paste0("-01-01") |> as.Date(),
               labels = date_format("%Y")) +
  scale_y_continuous(breaks = 0.01*seq(-60, 60, 2),
                     labels = scales::percent_format(accuracy = 1)) +
  xlab("") + ylab("Agriculture, value added (% of GDP)")

2001: Turkey

Code
NV.AGR.TOTL.ZS |>
  year_to_enddate() |>
  filter(iso2c %in% c("TR"),
         date <= as.Date("2006-01-01"),
         date >= as.Date("1996-01-01")) |>
  left_join(iso2c, by = "iso2c") |>
  ggplot() + 
  geom_line(aes(x = date, y = value/100)) + 
  theme_minimal() + scale_color_manual(values = viridis(5)[1:4]) +
  theme(legend.title = element_blank(),
        legend.position = c(0.2, 0.8)) +
  scale_x_date(breaks = seq(1950, 2100, 1) |> paste0("-01-01") |> as.Date(),
               labels = date_format("%Y")) +
  scale_y_continuous(breaks = 0.01*seq(-60, 60, 1),
                     labels = scales::percent_format(accuracy = 1)) +
  xlab("") + ylab("Agriculture, value added (% of GDP)")

Japan

Code
NV.AGR.TOTL.ZS |>
  filter(iso2c %in% c("JP")) |>
  left_join(iso2c, by = "iso2c") |>
  year_to_enddate() |>
  ggplot() + geom_line(aes(x = date, y = value/100)) +
  xlab("") + ylab("Agriculture, value added (% of GDP)") + theme_minimal() +
  theme(legend.title = element_blank(),
        legend.position = c(0.2, 0.2)) +
  scale_x_date(breaks = seq(1950, 2100, 2) |> paste0("-01-01") |> as.Date(),
               labels = date_format("%Y")) +
  scale_y_continuous(breaks = 0.01*seq(-60, 60, 0.1),
                     labels = scales::percent_format(accuracy = 0.1))

China, France, Germany

Code
NV.AGR.TOTL.ZS |>
  filter(iso2c %in% c("CN", "FR", "DE")) |>
  left_join(iso2c, by = "iso2c") |>
  year_to_enddate() |>
  mutate(value = value/100) |>
  left_join(colors, by = c("Iso2c" = "country")) |>
  ggplot() + 
  geom_line(aes(x = date, y = value, color = color)) + 
  theme_minimal() + scale_color_identity() + add_flags +
  theme(legend.title = element_blank(),
        legend.position = c(0.2, 0.2)) +
  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, 60, 2),
                     labels = scales::percent_format(accuracy = 1)) +
  xlab("") + ylab("Agriculture, value added (% of GDP)")

Italy, Portugal, Spain

Code
NV.AGR.TOTL.ZS |>
  filter(iso2c %in% c("ES", "IT", "PT")) |>
  left_join(iso2c, by = "iso2c") |>
  year_to_enddate() |>
  mutate(value = value/100) |>
  left_join(colors, by = c("Iso2c" = "country")) |>
  ggplot() + 
  geom_line(aes(x = date, y = value, color = color)) + 
  theme_minimal() + scale_color_identity() + add_flags +
  theme(legend.title = element_blank(),
        legend.position = c(0.2, 0.2)) +
  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, 60, 1),
                     labels = scales::percent_format(accuracy = 1)) +
  xlab("") + ylab("Agriculture, value added (% of GDP)")

Spain, United Kingdom, United States

Code
NV.AGR.TOTL.ZS |>
  filter(iso2c %in% c("US", "GB", "ES")) |>
  left_join(iso2c, by = "iso2c") |>
  year_to_enddate() |>
  mutate(value = value/100) |>
  left_join(colors, by = c("Iso2c" = "country")) |>
  ggplot() + 
  geom_line(aes(x = date, y = value, color = color)) + 
  theme_minimal() + scale_color_identity() + add_flags +
  theme(legend.title = element_blank(),
        legend.position = c(0.2, 0.2)) +
  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, 60, 1),
                     labels = scales::percent_format(accuracy = 1)) +
  xlab("") + ylab("Agriculture, value added (% of GDP)")

Argentina, Chile, Venezuela

Code
NV.AGR.TOTL.ZS |>
  filter(iso2c %in% c("AR", "CL", "VE")) |>
  left_join(iso2c, by = "iso2c") |>
  year_to_enddate() |>
  mutate(Iso2c = ifelse(iso2c == "VE", "Venezuela", Iso2c)) |>
  mutate(value = value/100) |>
  left_join(colors, by = c("Iso2c" = "country")) |>
  ggplot() + 
  geom_line(aes(x = date, y = value, color = color)) + 
  theme_minimal() + scale_color_identity() + add_flags +
  theme(legend.title = element_blank(),
        legend.position = c(0.2, 0.2)) +
  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, 60, 1),
                     labels = scales::percent_format(accuracy = 1)) +
  xlab("") + ylab("Agriculture, value added (% of GDP)")

Greece, Hong Kong, Mexico

Code
NV.AGR.TOTL.ZS |>
  filter(iso2c %in% c("GR", "HK", "MX")) |>
  left_join(iso2c, by = "iso2c") |>
  year_to_enddate() |>
  mutate(Iso2c = ifelse(iso2c == "HK", "Hong Kong", Iso2c)) |>
  mutate(value = value/100) |>
  left_join(colors, by = c("Iso2c" = "country")) |>
  ggplot() + 
  geom_line(aes(x = date, y = value, color = color)) + 
  theme_minimal() + scale_color_identity() + add_flags +
  theme(legend.title = element_blank(),
        legend.position = c(0.2, 0.2)) +
  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, 60, 1),
                     labels = scales::percent_format(accuracy = 1)) +
  xlab("") + ylab("Agriculture, value added (% of GDP)")