density: Plot Density Estimations

Description Usage Arguments Examples

Description

A plot method for simulations of a piecewise deterministic markov process (PDMP). It computes and plots a density over all simulations of the PDMP, seperately for every time value and every contious variable. Discrete variables are plotted in a stacked barplot.

Usage

1
2
3
4
5
## S3 method for class 'multSimData'
density(x, t, main, sub, ...)

## S3 method for class 'multSim'
density(x, t, main, ...)

Arguments

x

object of class multSimData or multSim.

t

a vector of time values at which the densities shall be plotted. If no vector is provided, every time value provided will be plotted.

main

optional character string for the title of the plot. If x is a multSim object, main will be set as descr(x$model) if not otherwise specified.

sub

optional character string for the subtitle of the plot. The default value for a multSim object x gives informations about parameters and the initial values.

...

additional parameters passed to the default method of density

Examples

1
2
3
data("simplePdmp")
ms <- multSim(simplePdmp, seeds = 1:10)
density(ms, t = c(5, 10))

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