plot_best_trajectory_single: Plot single best trajectory

Description Usage Arguments Value

View source: R/OLD.R

Description

For a given run name and state, plots the best zika and microcephaly incidence plot

Usage

1
2
3
4
5
plot_best_trajectory_single(local, chain = NULL, realDat = NULL,
  parTab = NULL, ts = NULL, runs = 100, incDat = NULL, ylabel = TRUE,
  xlabel = TRUE, mcmcPars = c(burnin = 50000, adaptive_period = 1e+05, thin
  = 50), ylimM = NULL, ylimI = NULL, startDay = NULL, months = NULL,
  weeks = NULL, xlim = NULL)

Arguments

local

the name of the state to be fitted

chain

the MCMC chain to use

realDat

the data frame of real data that was fitted to

parTab

the parameter table as returned by setupParTable

ts

vector of time parameters

runs

the number of runs to use for prediction intervals

incDat

incidence data set, if to be included in the plot

ylabel

boolean whether or not to add y axis label

xlabel

boolean whether or not to add x axis label

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

xlim

OPTIONAL x coordinate limits

Value

a ggplot object with the incidence plots


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