Description Usage Arguments Value
For a given run name and state, plots the best zika and microcephaly incidence plot
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)
|
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 |
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 |
a ggplot object with the incidence plots
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.