Visualizes the proportion of funding per earmarking type (Unearmarked, Softly earmarked, etc.) for a selected donor. Helps understand donor flexibility and restrictions.
Examples
p <- plot_donor_earmarking(flows, donor_name= "Spain, Government of")
# and plot with more powerful subtitle
dubbed <- generate_plot_story(p, provider = "azure", model = "gpt-4.1-mini")
p + ggplot2::labs(subtitle = dubbed)