Skip to contents

Measures the proportion of funding flows per destination that extend beyond the current year.

Usage

indicator_destination_pipeline_visibility(
  flows,
  current_year = as.numeric(format(Sys.Date(), "%Y")),
  destinations = NULL
)

Arguments

flows

A dataframe with destinationObjects, budgetYear, and amountUSD.

current_year

Numeric, the current calendar year.

destinations

Optional dataframe to merge.

Value

A list with a tibble with destination and Pipeline_Visibility and a plot.

Examples

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