Plot distributional allocation validation as a method heatmap
Source:R/plot_validation.R
plot_validation_distribution.RdPlots KL or Jensen-Shannon divergence summaries from
validate_flow_distribution().
Arguments
- distribution_results
A data frame, one
validate_flow_distribution()result, or a named list of results.- metric
Divergence metric to plot:
"jsd"or"kl".- value
Summary statistic to plot:
"mean","weighted_mean", or"median".- comparisons
Flow comparison(s) to plot. Defaults to
"adjusted_vs_benchmark". Use"all"to show all comparison rows present indistribution_results. When"raw_vs_benchmark"is included, it is shown as a single unadjusted raw MPD baseline row.- methods
Optional character vector of method identifiers or display labels to include. Default
NULLincludes all methods.- method_col
Column containing the method identifier. Default
"method".- method_labels
Optional named character vector used to relabel methods.