| density | R Documentation | 
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.
## S3 method for class 'multSimData'
density(x, t, main, sub, ...)
## S3 method for class 'multSim'
density(x, t, main, ...)
x | 
 object of class   | 
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   | 
sub | 
 optional character string for the subtitle of the plot. The 
default value for a   | 
... | 
 additional parameters passed to the default method of 
  | 
data("simplePdmp")
ms <- multSim(simplePdmp, seeds = 1:10)
density(ms, t = c(5, 10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.