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

Description Usage Arguments 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
## S3 method for class 'dmclist'
plot(
  x,
  ylim = c(-50, 150),
  xlim = NULL,
  col = c("black", "lightgrey"),
  lineType = "l",
  legendPos = "topleft",
  ncol = 1,
  ...
)

Arguments

x

Output from dmcSims

ylim

ylimit for delta plot

xlim

xlimit for delta plot

col

# color range start/end color

lineType

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

legendPos

legend position

ncol

number of legend columns

...

pars for legend

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, xlim = c(0, 1300), ylim = c(-100, 200))

# 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"), lineType = "l")

DMCfun documentation built on Jan. 13, 2021, 7:52 p.m.