Plot likelihood using ggplot2
ggplot_likelihood(x, parameter = NULL, type = c("likelihood", "deviance",
"both"), ci_level = 0.95, n_points = 200, theme = "minimal")A likelihood_function object
Name of the parameter to plot. If NULL, uses the first parameter.
Type of plot: "likelihood", "deviance", or "both"
Confidence level (default: 0.95)
Number of parameter values for profile likelihood evaluation
ggplot2 theme to apply. Options: "minimal" (default), "classic",
"bw", or any other ggplot2 theme object.
A ggplot object (or patchwork composition for type = "both")
Creates publication-quality plots using ggplot2 with subtitle showing
the confidence interval. For type = "both", requires the patchwork package
for combining plots vertically. If patchwork is not installed, only the likelihood
plot is returned with a message.
plot for base graphics version,
plotly_likelihood for interactive plots