Skip to contents

Visualizes a maximum-likelihood profile and its component contributions.

Usage

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

Arguments

obj

Retained for backward compatibility. The current implementation does not use this argument.

x

Data frame. MLE profile output from sbtprofile.

y

Retained for backward compatibility. The current implementation does not add an MCMC profile when this is supplied.

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 objective profile and component facets.

Details

The profile coordinate and its fitted value are exponentiated for plotting. This function is therefore suitable only for parameters profiled on a log scale. Values are negative objective contributions, despite the historical axis label referring to log likelihood.