Description Usage Arguments Value
Given a melted MCMC chain with a column for variable name, plots the posterior density with shaded regions for 95
1 2 | density_plot_func(varName, dat, xlabtext = "", weeks = 1, xlim = NULL,
xbreaks = NULL)
|
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 |
a ggplot object density plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.