plot_path: Plot a path of the simulated ruin process

Description Usage Arguments Details Value Examples

Description

plot_path() takes a simulated ruin process as the argument and plots its path.

Usage

1
plot_path(path_object)

Arguments

path_object

an S4 object of *Path class (e.g., PathCramerLundberg).

Details

Under the hood, the function uses ggplot2 package, therefore, all functionality from ggplot2 is available.

Value

A ggplot2 object.

Examples

1
2
3
4
5
6
7
8
9
model <- CramerLundberg(initial_capital = 10,
                        premium_rate = 1,
                        claim_poisson_arrival_rate = 1,
                        claim_size_generator = rexp,
                        claim_size_parameters = list(rate = 1))

path <- simulate_path(model = model, max_time_horizon = 10)

plot_path(path)

irudnyts/ruin documentation built on May 15, 2019, 2:52 a.m.