Description Usage Arguments Details Value References Examples
Creates a 'rtplots' object from a data frame of response time and choice/accuracy data, allowing for subsequent plotting.
1 2 3 |
df |
a data frame that includes (at a minimum) a column of response times. |
label |
a character string giving the column name for
the response time variable, and optionally the choice/accuracy
variable, a grouping factor variable (e.g., subjects), and
finally an additional covariate (e.g., conditions). If
|
keep |
a logical vector, indicating which rows should be kept when extracting the variables. |
type |
the type of function to compute. Options are
|
level |
an optional index indicating the specific level of the grouping factor to consider. This allows, for instance, selecting a single subject. |
... |
additional parameters for the density, distribution, and quantile functions. |
Forthcoming
An object of class 'rtplots', a list consisting of...
pd
; a data frame with the x and y values
to plot and their associated choice/accuracy value.
xm
; If relevant, a matrix whose columns
contain the individual x-axis values of the function
which were collapsed over the grouping factor.
ym
; If relevant, a matrix whose columns
contain the individual y-axis values of the function
which were collapsed over the grouping factor.
npfd
; a data frame with the number of
observations, proportions, and frequencies based on
the choice/accuracy values.
type
; the type of function that was applied.
x
; the range of x-axis values.
y
; the range of y-axis values.
Forthcoming
1 2 3 4 5 | # Load in example dataset
data("priming_data")
lbl = c( 'RT', 'Accuracy', 'Subjects' )
keep = priming_data$Condition == 0
obj = rtplots( priming_data, label = lbl, keep = keep )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.