do.individual.GOF: Individual GOF-plots

View source: R/04_GOFs.R

do.individual.GOFR Documentation

Individual GOF-plots

Description

DV, IPRED and PRED (default) individual GOF plots with one panel per subject. Caption added as reurned by get.caption

Usage

do.individual.GOF(data, x = "TIME", y = c("DV", "IPRED", "PRED"),
  type = c("point", "line", "line"), title = "", per.page = 20,
  fx = NULL, fy = NULL, ylab = "Observations/Predictions",
  equal.lims = TRUE, global.ggplot.options = NULL,
  control = GOF.control())

Arguments

data

data.frame to plot

x

character string with name of column for x

y

character string vector with names of columns for y, default = c(DV, IPRED , PRED)

type

plot symbol or line for each y variable, length of type must match length of y

title

title

per.page

number of subjects/panels on each page

fx

function for transformation of x before plotting

fy

function for transformation of y before plotting

ylab

y axis label

equal.lims

use same x- and y-limits on all pages and panels (TRUE), or use allow to vary across pages (FALSE)

global.ggplot.options

ggplot option added to each ggplot before plotting/returning object

control

an optional list of control settings. See GOF.control for the names of the settable control values and their effect.

Examples

# Get path to the example files included in nonmem2R package
file1 <- system.file("extdata", "sdtab999", package = "nonmem2R")
sdtab<-read.table(file=file1,skip=1,header=TRUE)
set.script.name("MyScript.R")
do.individual.GOF(subset(sdtab,DV>0 & ID<13))

nonmem2R documentation built on April 15, 2022, 1:05 a.m.