View source: R/rac_functions.R
| make_rac_gg | R Documentation |
Creates a ggplot2 visualization of RAC data showing the relationship between response time and accuracy.
make_rac_gg(
racobj_list,
show_errorbars = TRUE,
show_n = TRUE,
time_units = "ms"
)
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" |
A ggplot2 object
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.