Learn R Programming

topolow (version 2.0.1)

plot.topolow_diagnostics: 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 topolow_diagnostics
plot(
  x,
  output_dir,
  output_file = "topolow_param_diagnostics.png",
  save_plot = FALSE,
  ...
)

Value

A ggplot object of the combined plots.

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.