Learn R Programming

DstarM (version 0.1.0)

rtHist: 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 data$condition and/or data$response.
ggplot
ggplot Logical, should ggplot2 be used instead of base R graphics? If set to TRUE, some arguments from linesArgs and ... will be ignored (but can be added to plots manually).
...
Arguments to be passed to hist

Value

invisible()

Details

This function and rtDescriptives are helper functions to inspect raw data.

Examples

Run this code
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))

Run the code above in your browser using DataLab