Plots the total log-likelihood of each model as a dot plot, with the tier 1 index highlighted as a vertical dashed line.
Usage
PlotModelDot(models, prefix, out_dir, tier1_index)
Arguments
- models
Data frame or tibble. Must include a total_log_likelihood column.
- prefix
Character. Output file prefix.
- out_dir
Character. Output directory for saving the plot.
- tier1_index
Integer. The index (rank) of the tier 1 model to highlight.
Value
Invisibly returns the ggplot object (or FALSE if plotting failed). The plot is saved as a PNG file in the output directory.
Examples
# PlotModelDot(models, prefix = "Sample1", out_dir = "results/", tier1_index = 10)