make_rac_gg: Plot RAC Curve

View source: R/rac_functions.R

make_rac_ggR Documentation

Plot RAC Curve

Description

Creates a ggplot2 visualization of RAC data showing the relationship between response time and accuracy.

Usage

make_rac_gg(
  racobj_list,
  show_errorbars = TRUE,
  show_n = TRUE,
  time_units = "ms"
)

Arguments

racobj_list

List output from make_racdata()

show_errorbars

Logical. Whether to show error bars (default = TRUE)

show_n

Logical. Whether to show sample sizes (default = TRUE)

time_units

Character. Label for time units (e.g., "ms", "seconds"). Default = "ms"

Value

A ggplot2 object

Examples

data <- create_example_lineup_data(n_trials = 200,
                                   include_response_time = TRUE,
                                   seed = 123)
rac <- make_racdata(data, time_bins = c(0, 4000, 8000, 12000, 20000))
make_rac_gg(rac)


r4lineups documentation built on Nov. 10, 2026, 1:08 a.m.