Plots the value, at each printed out iteration, of objective function during an estimation step.

plot_ofv(run, estimation_number = NULL, auto_legend = TRUE)

Arguments

run

pmxploit NONMEM run object.

estimation_number

integer. Number of the estimation step. Default is NULL, plotting the last estimation.

auto_legend

logical. When TRUE (default), default pmxploit plotting options are applied (title, labels, axis...).

Value

A ggplot2 object.

Examples

EXAMPLERUN %>% plot_ofv()
EXAMPLERUN %>% plot_ofv(estimation_number = 1)