plot-pdmpModel: Plot a PDMP

Description Usage Arguments See Also Examples

Description

This method plots single simulations of piecewise deterministic markov processes defined as pdmpModel. There are also other plot methods available that use ggplot2.

Usage

1
2
3
4
5
## S3 method for class 'pdmpModel'
plot(x, y, ggplot = FALSE, ...)

## S4 method for signature 'pdmpModel,missing'
plot(x, y, ggplot = FALSE, ...)

Arguments

x

an object of class pdmpModel with a simulation stored in slot out

y

ignored

ggplot

boolean variable. If TRUE, a different plot will be created that uses package ggplot2.

...

optional parameters to plot method

See Also

plotSeeds for another plot function to plot single simulations

Examples

1
2
3
4
data("toggleSwitch")
sim <- sim(toggleSwitch, seed = 1)
plot(sim, col = "red", lwd = 2)
plot(sim, ggplot = TRUE)

CharlotteJana/pdmpsim documentation built on July 2, 2019, 5:37 a.m.