plot_best_trajectory_multi: Plot all best trajectoroes

Description Usage Arguments Value

View source: R/OLD.R

Description

For a given run name and state, plots the best zika and microcephaly incidence for all states

Usage

1
2
3
4
plot_best_trajectory_multi(chain, realDat, parTab, ts, runs = 100,
  incDat = NULL, mcmcPars = c(burnin = 50000, adaptive = 1e+05, thin = 50),
  ylimM = NULL, ylimI = NULL, startDay = NULL, months = NULL,
  weeks = NULL, ncol = 4, xlim = NULL)

Arguments

chain

the MCMC chain of estimated parameters

realDat

the data frame of data used for fitting

parTab

the parameter table used for fitting

ts

vector of times to solve model over

runs

the number of runs to use for prediction intervals

incDat

optional data frame of actual incidence data

mcmcPars

a named vector of the burnin, adaptive period and thinning

ylimM

ylimit for the microcephaly plot

ylimI

ylimit for the incidence plot

startDay

if realDat is not provided, need to provide the first day on which we want to see predicted microcephaly numbers

months

if realDat not provided, need to provide the number of months of forecasted data that we wish to see

weeks

if no incidence data provided, number of weeks over which we should plot the data

Value

a ggplot object with the incidence plots


jameshay218/zikaProj documentation built on Jan. 9, 2020, 7:26 p.m.