plot.topolow_diagnostics: Plot Method for topolow parameter estimation Diagnostics

View source: R/visualization.R

plot.topolow_diagnosticsR Documentation

Plot Method for topolow parameter estimation Diagnostics

Description

Creates trace and density plots for multiple chains to assess convergence and mixing. This is an S3 method that dispatches on topolow_diagnostics objects.

Usage

## S3 method for class 'topolow_diagnostics'
plot(
  x,
  output_dir,
  output_file = "topolow_param_diagnostics.png",
  save_plot = FALSE,
  ...
)

Arguments

x

A topolow_diagnostics object from calculate_diagnostics().

output_dir

Character. Directory for output files. Required if save_plot is TRUE.

output_file

Character path for saving the plot.

save_plot

Logical. Whether to save the plot.

...

Additional arguments passed to create_diagnostic_plots.

Value

A ggplot object of the combined plots.


topolow documentation built on Aug. 31, 2025, 1:07 a.m.