Skip to contents

Plots a time series comparing Spain's national net trade computed bottom-up from the provincial model against official FAOSTAT figures. Values are aggregated over all items per year.

Usage

plot_national_trade_validation(validation = NULL)

Arguments

validation

Optional pre-computed output from validate_national_trade(). If NULL, calls that function internally.

Value

A ggplot object.

Examples

validation <- tibble::tribble(
  ~year, ~item, ~net_prov, ~net_fao, ~diff_net,
  1960, "Barley and products", 12000, 9500, 2500,
  1960, "Bovine Meat", -3000, -2800, -200,
  2000, "Barley and products", 56943, 2175, 54768,
  2000, "Bovine Meat", 1601, 1569, 32
)
p <- plot_national_trade_validation(validation)