Skip to contents

Visualize likelihood profiles from maximum likelihood estimation and optionally MCMC.

Usage

plot_profile(obj, x, y = NULL, xlab = NULL, rescale = TRUE)

Arguments

obj

Data frame. MLE profile output from sbtprofile.

x

Data frame. MLE profile output from sbtprofile.

y

Data frame or NULL. Optional MCMC profile output from get_mcmc_profile. Default is NULL.

xlab

Character string or NULL. Label for x-axis. If NULL, uses the parameter name from x. Default is NULL.

rescale

Logical. If TRUE, rescale log-likelihood by subtracting minimum value. Default is TRUE.

Value

A ggplot object showing the likelihood profile with facets for different likelihood components.