plot_trajectory: OUTPUT FUNCTION

View source: R/plot_sir.R

plot_trajectoryR Documentation

OUTPUT FUNCTION

Description

Function that provides a plot of the estimated population trajectory from a SIR outputs model including: median, 95 credible interval, 90

Usage

plot_trajectory(SIR, Reference = NULL, file_name = NULL,
  posterior_pred = TRUE, coolors = "#941B0C", coolors2 = "#104F55")

Arguments

SIR

A fit SIR model

Reference

A fit SIR model for the reference case

file_name

name of a file to identified the files exported by the function. If NULL, does not save.

posterior_pred

Logical. If true, includes a posterior predictive distribution of the estimated N

Value

Returns and saves a figure with the population trajectory.


antarctic-humpback-2019-assessment/HumpbackSIR documentation built on Nov. 6, 2023, 6:07 p.m.