plot_occupancy: Plot state occupancy

Description Usage Arguments Value

View source: R/plot_occupancy.R

Description

Plot state occupancy for 1.25 multi-state model

Usage

1
2
3
4
5
6
7
8
plot_occupancy(
  pred,
  state = "all",
  pi = FALSE,
  pi_length = 0.9,
  ttl = "",
  sttl = ""
)

Arguments

pred

an object returned by pred_state_occupancy

state

a vector containing one or more of the following values: 'hos', 'icu', 'rest', 'death', 'recovery'; use 'all' to select all the states

pi

a logical value (TRUE/FALSE) indicating if prediction intervall must be drawn

pi_length

length of predicion intervall (ignored if pi = FALSE)

ttl

plot title

sttl

plot subtitle

Value

a plot of state occupancy


jpasquier/mscovid documentation built on March 31, 2021, 4:42 a.m.