plot-pdmpModel: Plot a PDMP

plot-pdmpModelR Documentation

Plot a PDMP

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

## 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

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

CharlotteJana/pdmpsim documentation built on Oct. 21, 2024, 4:54 p.m.