vis_agreement: Visualize Agreement (internal)

View source: R/ability_agreement.R

vis_agreementR Documentation

Visualize Agreement (internal)

Description

Internal function to visualize the agreement between human decisions and AI recommendations using a difference-in-means estimator of an indicator 1\{D_i = A_i\}.

Usage

vis_agreement(
  df,
  p.title = NULL,
  p.lb = -0.2,
  p.ub = 0.2,
  y.lab = "Impact of PSA"
)

Arguments

df

A data frame generated by compute_stats_agreement and reshaped.

p.title

A title for the plot (character). Default NULL.

p.lb

A lower bound for the y-axis (numeric). Default -0.2.

p.ub

An upper bound for the y-axis (numeric). Default 0.2.

y.lab

A label for the y-axis (character). Default "Impact of PSA".

Value

A ggplot object.


aihuman documentation built on April 12, 2025, 1:47 a.m.