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

Description Usage Arguments Value Examples

View source: R/plot.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## S3 method for class 'dmclist'
plot(
  x,
  ylim = NULL,
  xlim = NULL,
  figType = "delta",
  xlab = "Time [ms]",
  col = c("black", "lightgrey"),
  lineType = "l",
  legend = TRUE,
  legendPos = "topleft",
  legendLabels = NULL,
  ncol = 1,
  ...
)

Arguments

x

Output from dmcSims

ylim

ylimit for delta plot

xlim

xlimit for delta plot

figType

delta (default), deltaErrors

xlab

x-label

col

color range start/end color

lineType

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

legend

TRUE/FALSE Show legend

legendPos

legend position

legendLabels

Custom legend labels

ncol

number of legend columns

...

pars for legend

Value

Plot (no return value)

Examples

1
2
3
4
5
6
7
8
9
# Example 1
params <- list(amp = seq(20, 30, 2))
dmc <- dmcSims(params)
plot(dmc, ncol = 2, col = c("red", "green"), legendPos = "topright")

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

DMCfun documentation built on Oct. 25, 2021, 9:09 a.m.