Skip to contents

Calculates the proportion of destinations a donor supports out of the total destinations in the dataset.

Usage

indicator_donor_destination_coverage(flows, donor_dest_df = NULL)

Arguments

flows

A dataframe with sourceObjects, destinationObjects, and amountUSD.

donor_dest_df

(optional) A dataframe of donor–destination pairs to merge results with.

Value

A list with a tibble with donor, DonorDestination_Coverage_Index and a plot.

Details

Goal: Measures how many distinct destinations (countries/plans/sectors) a donor supports compared to the total destinations in the dataset.

Examples

result <- indicator_donor_destination_coverage(flows)
print(result$plot)
#> `stat_bin()` using `bins = 30`. Pick better value `binwidth`.