Skip to contents

Plot cumulative alignment curves by group.

Usage

plot_alignment_curve(
  results,
  group_label = base::attr(results, "group_label", exact = TRUE),
  group_colors = NULL,
  exclude_vals = "DK/REF",
  resolution = seq(0, 1, by = 0.01),
  interactive = FALSE
)

Arguments

results

Output from measure_alignment().

group_label

Optional label for legend.

group_colors

Optional manual colors.

exclude_vals

Group values to exclude.

resolution

Vector of quantiles to evaluate.

interactive

Logical; if TRUE, return an interactive plotly widget with per-point tooltips. Requires the plotly package.

Value

A ggplot object, or a plotly widget when interactive = TRUE.