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, deltaErrors, deltaER, or all of the previous plots.

Usage

## S3 method for class 'dmcobs'
plot(
  x,
  figType = "all",
  subject = NULL,
  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,
  xylabPos = 2,
  resetPar = TRUE,
  legend = TRUE,
  legend.parameters = list(),
  ...
)

Arguments

x

Output from dmcObservedData

figType

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

subject

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

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

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
dat <- dmcCombineObservedData(flankerData, simonData)  # combine flanker/simon data
plot(dat, figType = "all", xlimDelta = c(200, 700), ylimDelta = c(-20, 80),
     cols = c("black", "darkgrey"), pchs = c(1, 2))
plot(dat, figType = "delta", xlimDelta = c(200, 700), ylimDelta = c(-20, 80),
     cols = c("black", "darkgrey"), pchs = c(1, 2), legend = TRUE,
     legend.parameters=list(x="topright", legend=c("Flanker", "Simon")))


[Package DMCfun version 3.5.4 Index]