Plot simulated SPLT behavior

plot_splt_sim_behavior(splt_df, press_right, se = T)

Arguments

splt_df

a data frame from the SPLT, with non-response (is.na(pressed_r)) rows removed

press_right

an individual x trial matrix of trial responses

se

plot the standard error around smooth lines

Value

a plot split by sample, and overall summary plot

If press_right is a single matrix, returns a list of plots: one across all samples ($sample), and one overall ($overall). If press_right is a list of matrices, the plot returned does not group by sample, returning an overall plot that contains the additional variable sim that can be used in a facet expression. For use with gganimate, note that the frame aesthetic is set to sim.