plot_traj: plot_traj

Description Usage Arguments Value Examples

View source: R/plot_traj.R

Description

plot_traj

Usage

1
2
3
4
5
6
7
plot_traj(
  density_init = c(100, 200, 500, 1000, 2000, 5000),
  coeff_traj = c(a = 13.532, b = -1.461, a0 = 14.21, b0 = -1.79),
  scale = c(xmin = 15, xmax = 500, ymin = 50, ymax = 5000),
  ...,
  remove_theme = FALSE
)

Arguments

density_init

A vector of initial densities (numeric)

coeff_traj

Coefficient a, b, a0, and b0 of the mortality trajectory (cf : Ningre et al "Trajectoires d auto-eclaircie du Douglas en France)

scale

A vector compose of xmin, xmax, ymin and ymax

...

Param to give to th ggplot (color, linetype, alpha, ...)

remove_theme

If TRUE, already created theme for the graph is remove

Value

A ggplot object

Examples

1
## Not run: plot_traj()

paul-carteron/SimCop documentation built on Dec. 22, 2021, 6:42 a.m.