histplot: Plot posterior histograms

View source: R/histplot.R

histplotR Documentation

Plot posterior histograms

Description

Plots histograms of posterior samples from an MCMC chain contained within a bdm class object.

Usage

histplot(object, ...)

## S3 method for class 'bdm'
histplot(object, pars = c("r", "logK", "lp__"), inc_warmup = FALSE, ...)

Arguments

object

a bdm class object.

...

additional arguments to the generic function

pars

character vector of model parameters to be plotted. Defaults to pars = c('r','logK','lp__').

inc_warmup

logical value indicating whether MCMC warmup should be included in the plot.

Value

Returns a ggplot object that can be displayed or assigned and manuipulated using further arguments from the ggplot2 package.


cttedwards/bdm documentation built on Oct. 11, 2022, 7:52 p.m.