Skip to contents

Simple line plot of mean simulated outgroup rating across chapter order for each book.

Usage

plot_chapter_trajectories(
  summary_df,
  dv = "mean_post_outgroup",
  y_label = "Simulated scores"
)

Arguments

summary_df

A data frame produced by summarize_chapter_scores() with columns chapter_index, mean_post_outgroup, and book.

dv

Character. Column name to plot on the y-axis. Defaults to "mean_post_outgroup".

y_label

Character. Y-axis label.

Value

A ggplot2 object.

Examples

chapter_summary <- summarize_chapter_scores(toy_sim_results)
plot_chapter_trajectories(
  chapter_summary,
  dv = "mean_delta_gap",
  y_label = "Mean gap change"
)