Individual contribution to objective function plot

plot_individual_ofv(run, estimation_number = NULL, ids = NULL,
  ordered = TRUE, auto_legend = TRUE)

Arguments

run

pmxploit NONMEM run object.

estimation_number

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

ids

integer vector of the IDs of the individuals to plot. Default is NULL, plotting all the individuals.

ordered

logical. Sort individuals based on their individual OFV.

auto_legend

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

Value

A ggplot2 object.

Examples

random_ids <- sample(1:527, 40) EXAMPLERUN %>% plot_individual_ofv(ids = random_ids)
EXAMPLERUN %>% plot_individual_ofv(ids = random_ids, ordered = FALSE)