plot.dmcsim {DMCfun} | R Documentation |
plot.dmcsim: Plot dmc simulation
Description
Plot the simulation results from the output of dmcSim. The plot can be an overall summary, or individual plots (activation, trials, pdf, cdf, caf, delta, all). Plot type summary1 contains an activation plot, example individual trials, the probability distribution function (PDF), the cumulative distribution function (CDF), the conditional accuracy function (CAF) and delta plot. This requires that dmcSim is run with fullData = TRUE. Plot type summary2 contains only the PDF, CDF, CAF and delta plots and does not require that dmcSim is run with fullData = TRUE.
Usage
## S3 method for class 'dmcsim'
plot(
x,
figType = "summary1",
xlimActivation = NULL,
ylimActivation = NULL,
xlimTrials = NULL,
ylimTrials = NULL,
xlimPDF = NULL,
ylimPDF = NULL,
xlimCDF = NULL,
ylimCAF = NULL,
cafBinLabels = FALSE,
ylimDelta = NULL,
xlimDelta = NULL,
ylimRt = NULL,
ylimErr = NULL,
labels = c("Compatible", "Incompatible"),
cols = c("green", "red"),
errorBars = FALSE,
xlabs = TRUE,
ylabs = TRUE,
xaxts = TRUE,
yaxts = TRUE,
xylabPos = 2,
resetPar = TRUE,
legend = TRUE,
...
)
Arguments
x |
Output from dmcSim |
figType |
summary1, summary2, summary3, activation, trials, pdf, cdf, caf, delta, deltaErrors, deltaER, rtCorrect, rtErrors, errorRate, all |
xlimActivation |
xlimit for activation plot |
ylimActivation |
ylimit for activation plot |
xlimTrials |
xlimit for trials plot |
ylimTrials |
ylimit for trials plot |
xlimPDF |
xlimit for PDF plot |
ylimPDF |
ylimit for PDF plot |
xlimCDF |
xlimit for CDF plot |
ylimCAF |
ylimit for CAF plot |
cafBinLabels |
TRUE/FALSE |
ylimDelta |
ylimit for delta plot |
xlimDelta |
xlimit for delta plot (Default is 0 to tmax) |
ylimRt |
ylimit for rt plot |
ylimErr |
ylimit for er plot |
labels |
Condition labels c("Compatible", "Incompatible") default |
cols |
Condition colours c("green", "red") default |
errorBars |
TRUE/FALSE |
xlabs |
TRUE/FALSE |
ylabs |
TRUE/FALSE |
xaxts |
TRUE/FALSE |
yaxts |
TRUE/FALSE |
xylabPos |
2 |
resetPar |
TRUE/FALSE Reset graphical parameters |
legend |
TRUE/FALSE |
... |
additional plot pars |
Value
Plot (no return value)
Examples
# Example 1
dmc = dmcSim(fullData = TRUE)
plot(dmc)
# Example 2
dmc = dmcSim()
plot(dmc)
# Example 3
dmc = dmcSim(tau = 120)
plot(dmc)
# Example 4
dmc = dmcSim()
plot(dmc, figType = "all")