density_plot_func: Microcephaly parameter density plot

Description Usage Arguments Value

View source: R/plots.R

Description

Given a melted MCMC chain with a column for variable name, plots the posterior density with shaded regions for 95

Usage

1
2
density_plot_func(varName, dat, xlabtext = "", weeks = 1, xlim = NULL,
  xbreaks = NULL)

Arguments

varName

the name of the variable to plot

dat

the melted MCMC chain

xlabtext

optional x-axis title

weeks

if set, this divides everything by this amount. ie. if we want value in weeks rather than days

xlim

optional vector of lower and upper x axis limits

xbreaks

optional vector of x axis break points

Value

a ggplot object density plot


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