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,
  xlimTrials = NULL,
  xlimPDF = NULL,
  ylimPDF = NULL,
  xlimCDF = NULL,
  ylimCAF = NULL,
  cafBinLabels = FALSE,
  ylimDelta = NULL,
  xlimDelta = NULL,
  ylimDeltaErrors = NULL,
  ylimRt = NULL,
  ylimErr = NULL,
  legend = TRUE,
  labels = c("Compatible", "Incompatible"),
  cols = c("black", "green", "red"),
  errorBars = FALSE,
  xlabs = TRUE,
  ylabs = TRUE,
  xaxts = TRUE,
  yaxts = TRUE,
  resetPar = TRUE,
  ...
)

Arguments

x

Output from dmcSim

figType

summary1, summary2, summary3, activation, trials, pdf, cdf, caf, delta, rtCorrect, rtErrors, errorRate, all

xlimActivation

xlimit for activation plot

xlimTrials

xlimit 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)

ylimDeltaErrors

ylimit for delta plot of errors

ylimRt

ylimit for rt plot

ylimErr

ylimit for er plot

legend

TRUE/FALSE (or FUNCTION) plot legend on each 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

resetPar

TRUE/FALSE Reset graphical parameters

...

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()
plot(dmc, figType = "all")

# Example 4
dmc = dmcSim()
plot(dmc, figType = "summary3")




[Package DMCfun version 2.0.2 Index]