cumsumplot: Plot cumulative sum of MCMC chain

View source: R/cumsumplot.R

cumsumplotR Documentation

Plot cumulative sum of MCMC chain

Description

Plots the cumulative sum of ordered posterior samples from an MCMC chain contained within a bdm class object.

Usage

cumsumplot(object, ...)

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

Arguments

object

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.