plot_trace_all: plot the trace of all fitted variables

View source: R/plotting.R

plot_trace_allR Documentation

plot the trace of all fitted variables

Description

plot the trace of all fitted variables

Usage

plot_trace_all(
  chain,
  parTab,
  startTab,
  zoom,
  ncol = 1,
  n_samples = 0,
  real_data
)

Arguments

chain

data table containing iterations of MCMC chain after discarding burn-in

parTab

data frame containing parameter information, created by specify_parameters()

startTab

data frame of the same form as parTab, containing the parameter values at the start of the chain (before discrading burnin)

zoom

logical vector of length 1. if TRUE, the y-axis limits are the range of the parameter values in the chain (the start value is disregarded). if FALSE, the limits are as given in parTab, unless at least one of these is NA, in which case the range of the chain values + start value is used.

ncol

if ncol = 0, output each plot as a separate ggplot object. if ncol > 0, arrange into ncol columns in a single ggplot object.

n_samples

numeric vector of length 1. number of samples to plot, taken at evenly spaced intervals along the chain. if 0, plot all samples.

real_data

logical vector ot length 1. If TRUE, because we're using real data, we don't know the true parameter values, so the values in parTab are just example values. If FALSE, we are using simulated data, and the values in parTab are the true values, so plot these

Value

ggplot object or a list of ggplot objects


ada-w-yan/deltaomicron1 documentation built on June 24, 2022, 5:41 a.m.