Learn R Programming

topolow (version 1.0.0)

plot.topolow_amcs_diagnostics: Plot Method for Adaptive Monte Carlo Sampling Diagnostics

Description

Creates trace and density plots for multiple chains to assess convergence and mixing.

Usage

# S3 method for topolow_amcs_diagnostics
plot(
  x,
  output_dir,
  output_file = "mc_diagnostics.png",
  save_plot = FALSE,
  width = 3000,
  height = 3000,
  res = 300,
  ...
)

Value

A ggplot object of the combined plots.

Arguments

x

A topolow_amcs_diagnostics object

output_dir

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

output_file

Character path for saving plot

save_plot

Logical. Whether to save the plot.

width, height, res

Plot dimensions and resolution

...

Additional arguments passed to plot functions