plot_spaghetti: Plot NONMEM data as spaghetti plot

View source: R/diagnostics.R

plot_spaghettiR Documentation

Plot NONMEM data as spaghetti plot

Description

The spaghetti plot will be formed using DV values, stratified by variables in strat. Add CMT to strat if there are multiple observations. Data will be colored by combinations of variables found in grouping.

Usage

plot_spaghetti(.data, strata = "", grouping = "", idv = "TIME",
  logY = F, ID = "ID")

Arguments

.data

NONMEM data as a data.frame

grouping

A comma delimited string of grouping variables.

idv

A comma delimited string of variables for the x axis

ID

a character value giving the column containing subject IDs

strat

A comma delimited string of stratification variables.

Value

a list of ggplot2 plot objects, one for each idv.


qPharmetra/PMDatR documentation built on April 7, 2024, 5:42 p.m.