rtHist {DstarM} | R Documentation |
Make histograms of reaction time data
Description
Make histograms of reaction time data
Usage
rtHist(data, what = "cr", layout = NULL, nms = NULL, ggplot = FALSE, ...)
Arguments
data |
A reaction time dataset. Must be a dataframe with $rt, $condition and $response. |
what |
@param what What to plot. Can be 'cr' for 'condition-response pairs, 'c' for condition, and 'r' for response. |
layout |
An optional layout. |
nms |
An optional vector of names for each plot. If omitted the names
will be based on the contents of |
ggplot |
ggplot Logical, should ggplot2 be used instead of base R graphics? If set to TRUE,
some arguments from |
... |
Arguments to be passed to |
Details
This function and rtDescriptives
are helper functions to inspect raw data.
Value
invisible()
Examples
tt = seq(0, 5, .01)
dat = simData(n = 3e4, pars = rep(.5, 5), tt = tt, pdfND = dbeta(tt, 10, 30))
rtHist(dat, breaks = tt, xlim = c(0, 1))
[Package DstarM version 0.4.0 Index]