- data
A data frame. The experimental data in EMC2 format with at least subject
(i.e., the
subject factor), R
(i.e., the response factor) and rt
(i.e., response time) variable.
Additional factor variables of the design are optional.
- pp
A data frame. Posterior predictives created by predict()
- subject
Integer or string selecting a subject from the data. If specified only that subject
is plotted. NULL
(i.e., the default), will plot all subjects.
- factors
Character vector of factors in data to display separately. If
NULL (default) use names of all columns in data except "trials","R", and "rt".
Omitted factors are aggregated over. If NA treats entire data set as a single cell.
Must be NA or NULL when using stat argument.
- functions
A named list of functions that create new factors which can then be
used by the factors and stat arguments.
- stat
A function that takes the data/the posterior predictives and returns a single value.
For the posterior predictives it will use a single value per replicate, which are then plotted as a density.
- stat_name
A string naming what the stat argument calculates, used in labeling the x-axis of the plot.
- adjust
Numeric. Density function bandwidth adjust parameter. See ``?density`
- quants
A vector. Quantiles of the posterior predictives to return when stat argument is supplied.
- do_plot
Boolean. Set to FALSE
to only return the quantiles and omit the plots.
- xlim
A numeric vector. x-axis plot limit.
- ylim
A numeric vector. y-axis plot limit.
- layout
A vector specifying the layout as in par(mfrow = layout)
.
If NA
or NULL
uses current plot window layout.
- mfcol
Boolean. If TRUE
uses par(mfrow = layout), otherwise uses par(mfcol = layout)
- probs
Vector of probabilities at which to calculate cumulative density function
- data_lwd
Integer. Line width for data
- fit_lwd
Integer. Line width for posterior predictives
- q_points
Vector. Quantile points to plot
- qp_cex
Numeric. Cex for data quantile points
- pqp_cex
Numeric. Cex for predicted quantile points
- lpos
Character. Legend position, see ?legend()
.
- main
Character. Pasted before the plot title, especially useful when specifying a stat argument.