plot_trace: Plot Trace

View source: R/ClusterModeling_plottingfunctions.R

plot_traceR Documentation

Plot Trace

Description

Create a trace plot for all chains for a single variable of a fitted model created by fit_model(). If the model contains more than one chain, the chains will be combined by pasting them together.

Usage

plot_trace(variable, model)

Arguments

variable

The name of a variable in the model

model

A model created by fit_model()

Value

A trace plot

Examples

plot_trace(model = example_model_1chain, variable = "pi[1,1]")
plot_trace(model = example_model_1chain, variable = "mu[2,3]")
plot_trace(model = example_model_2chains, variable = "gamma[1]")
plot_trace(model = example_model_2chains, variable = "tau[2,3]")
plot_trace(model = example_model_2chains, variable = "eta[2]")


handwriter documentation built on Oct. 13, 2023, 5:10 p.m.