vis_preference: Visualize Preference (internal)

View source: R/ability_preference.R

vis_preferenceR Documentation

Visualize Preference (internal)

Description

Internal function to visualize preference for Human over AI decision makers.

Usage

vis_preference(
  df,
  p.title = NULL,
  legend.position = "none",
  p.label = c("AI-alone preferred", "Human-alone preferred", "Ambiguous")
)

Arguments

df

Data frame with columns 'X', 'l01', and 'pref'.

p.title

Plot title (character).

legend.position

Position of the legend (character).

p.label

Labels for the lines (character).

Value

A ggplot object.


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