plot.dmcobs {DMCfun}R Documentation

plot.dmcobs: Plot combined observed data

Description

Plot delta results from the output of dmcObservedData. The plot can be an overall rtCorrect, errorRate, rtErrors, cdf, caf, delta, or all of the previous plots.

Usage

## S3 method for class 'dmcobs'
plot(
  x,
  figType = "all",
  subject = NULL,
  legend = TRUE,
  legendLabels = c(),
  labels = c("Compatible", "Incompatible"),
  cols = c("black", "gray"),
  ltys = c(1, 1),
  pchs = c(1, 1),
  errorBars = FALSE,
  errorBarType = "sd",
  ylimRt = NULL,
  ylimErr = NULL,
  xlimCDF = NULL,
  ylimCAF = NULL,
  cafBinLabels = FALSE,
  ylimDelta = NULL,
  xlimDelta = NULL,
  xlabs = TRUE,
  ylabs = TRUE,
  xaxts = TRUE,
  yaxts = TRUE,
  resetPar = TRUE,
  ...
)

Arguments

x

Output from dmcObservedData

figType

rtCorrect, errorRate, rtErrors, cdf, caf, delta, all

subject

NULL (aggregated data across all subjects) or integer for subject number

legend

TRUE/FALSE (or FUNCTION) plot legend on each plot

legendLabels

legend labels

labels

Condition labels c("Compatible", "Incompatible") default

cols

Condition colours c("green", "red") default

ltys

Linetype see par

pchs

Symbols see par

errorBars

TRUE(default)/FALSE Plot errorbars

errorBarType

sd(default), or se

ylimRt

ylimit for Rt plots

ylimErr

ylimit for error rate plots

xlimCDF

xlimit 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

resetPar

TRUE/FALSE Reset graphical parameters

...

additional plot pars

Value

Plot (no return value)

Examples


# Example 1
dat <- dmcCombineObservedData(flankerData, simonData)  # combine flanker/simon data
plot(dat, figType = "delta", xlimDelta = c(200, 700), ylimDelta = c(-20, 80),
     cols = c("black", "darkgrey"), pchs = c(1, 2), legend = FALSE, resetPar = FALSE)
legend(200, 80, legend = c("Flanker Task", "Simon Task"),
       col = c("black", "darkgrey"), lty = c(1, 1))


[Package DMCfun version 2.0.2 Index]