plot_risk: plot_risk

Description Usage Arguments Value

View source: R/utils.R

Description

plots binned risk choices with specified subjid

Usage

1
plot_risk(df, subjid = 0, by_prev_outcome = FALSE)

Arguments

df:

dataframe containing risky trials

subjid:

subjid

by_prev_outcome:

Boolean, if true it plots separately for lottery-win, lottery-lose and sure-bet as previous outcome

Value

ggplot object


xiaoyuezhuu/risky-muscimol documentation built on Jan. 7, 2022, 12:27 a.m.