plot {RWiener} | R Documentation |
Wiener plot function
Description
plot
creates a density plot of correct and wrong responses
for a given dataset.
Usage
## S3 method for class 'data.wiener'
plot(x, ...)
Arguments
x |
data.wiener object, which is basically a data.frame with data. Needs a reaction time column and a accuracy/response column. |
... |
Arguments to be passed to methods, such as graphical parameters. |
References
Wabersich, D., & Vandekerckhove, J. (2014). The RWiener package: An R package providing distribution functions for the Wiener diffusion model. The R Journal, 6(1), 49-56.
Examples
## generate random data
dat <- rwiener(100,2,.3,.5,0)
## plot
plot(dat)
[Package RWiener version 1.3-3 Index]