vis_preference {aihuman} | R 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.
[Package aihuman version 1.0.1 Index]