Skip to contents

Plot group-level metrics over time.

Usage

plot_group_stat_over_time(
  results_list,
  metric = c("cumulative_perfect_alignment", "cumulative_weak_alignment",
    "alignment_mean", "cumulative_issue_alignment_prop"),
  wave_col = "year",
  group_col = "group",
  group_label = "Group",
  group_colors = NULL
)

Arguments

results_list

Named list of results by wave/year.

metric

Column in group_stats to plot.

wave_col

Output column name for waves/years.

group_col

Output column name for groups.

group_label

Legend label for group colors.

group_colors

Optional manual colors.

Value

ggplot object.