do.individual.GOF.Rd
DV, IPRED and PRED (default) individual GOF plots with one panel per subject. Caption added as reurned by get.caption
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()
)
data.frame to plot
character string with name of column for x
character string vector with names of columns for y, default = c(DV, IPRED , PRED)
plot symbol or line for each y variable, length of type must match length of y
title
number of subjects/panels on each page
function for transformation of x before plotting
function for transformation of y before plotting
y axis label
use same x- and y-limits on all pages and panels (TRUE), or use allow to vary across pages (FALSE)
ggplot option added to each ggplot before plotting/returning object
an optional list of control settings. See GOF.control for the names of the settable control values and their effect.
# 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))