Learn R Programming

metamisc (version 0.4.0)

dplot.mcmc.list: Posterior distribution of estimated model parameters

Description

Generate a plot of the posterior distribution

Usage

# S3 method for mcmc.list
dplot(x, P, plot_type = "dens", ...)

Value

A ggplot object.

Arguments

x

An object of class "mcmc.list"

P

Optional dataframe describing the parameters to plot and their respective names

plot_type

Optional character string to specify whether a density plot ("dens") or histogram ("hist") should be displayed.

...

Additional arguments which are currently not used

Author

Thomas Debray <thomas.debray@gmail.com>