Learn R Programming

poisson (version 1.0)

plotprocesses: Plot simulated process paths

Description

Plot a matrix of simulated process paths

Usage

plotprocesses(x, y = NULL, xlab = "t (years)", ylab = "N", type = "l", lty = 2, col = "cadetblue3", xlim = c(0, 1.1 * max(x)), lwd = 0.5, add = F, ...)

Arguments

x
matrix of process paths
y
variable for y axis, index of x if NULL
xlab
Label for x-axis
ylab
Label for y-axis
type
Type of plot for simulated processes paths
lty
Line type for simulated processes paths
col
Colour for simulated processes paths
xlim
The range for the x-axis
lwd
Line-width for simulated processes paths
add
TRUE to add to existing plot; FALSE to start afresh
...
Additional arguments affecting the plot

Examples

Run this code
scen = hpp.scenario(rate = 5, num.events = 20, num.sims = 100)
plotprocesses(scen@x, main='My HPP paths')

Run the code above in your browser using DataLab