plot.dmcfit_subject | R Documentation |
Plot the simulation results from the output of dmcFit. 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 plots. This required 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.
## S3 method for class 'dmcfit_subject'
plot(
x,
y,
subject = NULL,
figType = "summary",
labels = c("Compatible", "Incompatible", "Observed", "Predicted"),
cols = c("green", "red"),
ylimRt = NULL,
ylimErr = NULL,
xlimCDF = NULL,
ylimCAF = NULL,
cafBinLabels = FALSE,
ylimDelta = NULL,
xlimDelta = NULL,
xlabs = TRUE,
ylabs = TRUE,
xaxts = TRUE,
yaxts = TRUE,
xylabPos = 2,
resetPar = TRUE,
legend = TRUE,
legend.parameters = list(legend = c("Observed", "Predicted")),
...
)
x |
Output from dmcFit |
y |
Observed data |
subject |
NULL (aggregated data across all subjects) or integer for subject number |
figType |
summary, rtCorrect, errorRate, rtErrors, cdf, caf, delta, all |
labels |
Condition labels c("Compatible", "Incompatible", "Observed", "Predicted") default |
cols |
Condition colours c("green", "red") default |
ylimRt |
ylimit for Rt plots |
ylimErr |
ylimit for error rate plots |
xlimCDF |
ylimit for CDF plot |
ylimCAF |
ylimit for CAF plot |
cafBinLabels |
TRUE/FALSE |
ylimDelta |
ylimit for delta plot |
xlimDelta |
xlimit for delta plot |
xlabs |
TRUE/FALSE |
ylabs |
TRUE/FALSE |
xaxts |
TRUE/FALSE |
yaxts |
TRUE/FALSE |
xylabPos |
2 |
resetPar |
TRUE/FALSE Reset graphical parameters |
legend |
TRUE/FALSE |
legend.parameters |
list |
... |
additional plot pars |
Plot (no return value)
# Example 1
resTh <- dmcFitSubject(flankerData, nTrl = 5000, subject = c(1,3))
plot(resTh, flankerData, subject = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.