plot.dmclist {DMCfun}R Documentation

plot.dmclist: Plot delta plots from multiple dmc simulations.

Description

Plot delta function from multiple dmc simulations (i.e., dmcSims).

Usage

## S3 method for class 'dmclist'
plot(
  x,
  ylim = NULL,
  xlim = NULL,
  figType = "delta",
  xlab = "Time [ms]",
  ylab = expression(paste(Delta, "Time [ms]")),
  xylabPos = 2,
  col = c("black", "lightgrey"),
  lineType = "l",
  legend = TRUE,
  legend.parameters = list(),
  ...
)

Arguments

x

Output from dmcSims

ylim

ylimit for delta plot

xlim

xlimit for delta plot

figType

delta (default), deltaErrors

xlab

x-label

ylab

y-label

xylabPos

x/y label position

col

color range start/end color

lineType

line type ("l", "b", "o") for delta plot

legend

TRUE/FALSE Show legend

legend.parameters

list

...

pars for plot

Value

Plot (no return value)

Examples


# Example 1
params <- list(amp = seq(20, 30, 2))
dmc <- dmcSims(params)
plot(dmc, col = c("red", "green"), legend.parameters = list(x = "topright", ncol=2))

# Example 2
params <- list(amp=c(10, 20), tau = c(20, 40), drc = c(0.2, 0.6), nTrl = 50000)
dmc <- dmcSims(params)
plot(dmc, col=c("green", "blue"), ylim = c(-10, 120), legend.parameters=list(ncol=2))




[Package DMCfun version 3.5.4 Index]