rtHist: Make histograms of reaction time data

Description Usage Arguments Details Value Examples

View source: R/rtHist.R

Description

Make histograms of reaction time data

Usage

1
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

Details

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

Value

invisible()

Examples

1
2
3
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))

DstarM documentation built on Aug. 29, 2020, 1:06 a.m.