Prepares data for reciprobit plot
Arguments
- raw_data
Vector of reaction times for a single participant, or a dataframe containing a column called
timewith the reaction times and optional other columns:a column called
namewith a unique label for each dataseta column called
participantwith a unique id per participant and another calledconditionwith a unique label for each condition. In this case thenamefor each dataset will be constructed asparticipant+name_separator+condition.a column called
colorthat contains one hexadecimal color code for each dataset. In this case thenamefor 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_datadataframe does not contain anamecolumn, but does haveparticipantandconditioncolumns, thenamefor each dataset will be constructed asparticipant+name_separator+condition.