plot.dmclist | R Documentation |
Plot delta function from multiple dmc simulations (i.e., dmcSims).
## 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(),
...
)
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 |
Plot (no return value)
# 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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.