hist | R Documentation |
A plot method for simulations of a piecewise deterministic markov process
(PDMP
). It plots every continous variable in its own histogram
and all discrete variables in a stacked barplot.
## S3 method for class 'multSimData'
hist(x, t, bins = 15, main, sub, ggplot = FALSE, ...)
## S3 method for class 'multSim'
hist(x, t, main, sub, ...)
x |
object of class |
t |
a single time value at which the histogram shall be plotted.
The parameter can be omitted if |
bins |
integer. Number of bins for the histogram of the continous variables. |
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 |
ggplot |
boolean value. If |
... |
additional parameters passed to the default method of
|
data("simplePdmp")
ms <- multSim(simplePdmp, seeds = 1:10)
hist(ms, t = 10)
hist(getMultSimData(ms), t = 10, density = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.