plot_individual_ofv: Individual contribution to objective function plot

View source: R/plot_individual_ofv.R

plot_individual_ofvR Documentation

Individual contribution to objective function plot

Description

Individual contribution to objective function plot

Usage

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)

pnolain/pmxploit documentation built on Jan. 31, 2024, 1:16 p.m.