plot.dmcfit {DMCfun}R Documentation

plot.dmcfit: Plot observed + fitted data

Description

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.

Usage

## S3 method for class 'dmcfit'
plot(
  x,
  y,
  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")),
  ...
)

Arguments

x

Output from dmcFit

y

Observed data

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

Value

Plot (no return value)

Examples


# Example 1
resTh <- dmcFit(flankerData, nTrl = 5000)
plot(resTh, flankerData)
plot(resTh, flankerData, figType = "deltaErrors")

# Example 2
resTh <- dmcFit(simonData, nTrl = 5000)
plot(resTh, simonData)



[Package DMCfun version 3.5.4 Index]