Prepares data for reciprobit plot
Arguments
- raw_data
Vector of reaction times for a single participant, or a dataframe containing a column called
time
with the reaction times and optional other columns:a column called
name
with a unique label for each dataseta column called
participant
with a unique id per participant and another calledcondition
with a unique label for each condition. In this case thename
for each dataset will be constructed asparticipant
+name_separator
+condition
.a column called
color
that contains one hexadecimal color code for each dataset. In this case thename
for each dataset will be set to be the name of the color.
- time_unit
Units of the reaction times in rt_vector, must be one of "ms", "ds", or "s".
- name_separator
If the
raw_data
dataframe does not contain aname
column, but does haveparticipant
andcondition
columns, thename
for each dataset will be constructed asparticipant
+name_separator
+condition
.