plotFitOnePatch: Plot the Results of a 'DICE' Run - Single Region

Description Usage Arguments Value Examples

View source: R/plot_fxns.R

Description

Plot the results of DICE run for a single region/patch. We show the observed incidence along with our fits and if appropriate predictions. We show the best result and randomly selected results from the MCMC chain.

Usage

1
2
plotFitOnePatch(model_rtn = NULL, model_profile = NULL, mydata = NULL,
  ireal = 1, run.list = NULL, idevice = 1)

Arguments

model_rtn

A 1D numeric array with the best direct prediction to the region

model_profile

A 2D numeric array with randomly chosen predicted profiles obtained by fitting the mydata

mydata

A dataframe with all the data available for this DICE run

ireal

Integer - the MCMC chain number

run.list

A list with various run parameters

idevice

Integer - the index of the device in the device array. Default is 1 - make only one format of plot results

Value

Returns err = 0 if successful

Examples

1
2
plotFitOnePatch{model_rtn = model_rtn, model_profile = model_profile,
mydata = mydata, ireal = ireal, device = device, idevice = 1}

predsci/DICE documentation built on Aug. 9, 2019, 9:41 a.m.