Plot Posterior Distributions of Inferred Breakpoints
plot_breakpoints_posterior.Rd
Generates a plot showing the posterior distributions of the inferred breakpoints from a fitted model. The plot can include density estimates and optional histograms for better visualization.
Arguments
- x
A
bipod
object that contains a 'breakpoints_fit' field.- with_histogram
A logical value indicating whether to overlay histograms of the breakpoint samples on the density plots. (default is FALSE)
- alpha
A numeric value between 0 and 1 specifying the transparency level of the density plot. (default is 0.6)
- colors
A character vector specifying colors to use for the different inferred breakpoints. If
NULL
, the default color 'darkgray' is used for all breakpoints.