do.one.GOF {nonmem2R} | R Documentation |
X-Y GOF-plot
Description
X-Y GOF plot with reflines and data smoother and with caption added as reurned by get.caption
Usage
do.one.GOF(
data,
x,
y,
color = "",
add.loess = TRUE,
refline = c("abline", "href0", "hrefmean", "hrefmedian", "none"),
title = "",
lines.by.id = FALSE,
id.column = "ID",
fx = NULL,
fy = NULL,
control = GOF.control()
)
Arguments
data |
data.frame to plot |
x |
character string with name of column for x |
y |
character string with name of column for y |
color |
data columns to set different colors in plot, interpreted as factor |
add.loess |
add loess smoother to plot (TRUE), or not (FALSE) |
refline |
add reference line with intercept=0, slope=1 (abline), horizontal at y=0( href0), horizontal at y=mean of y( hrefmean), horizontal at y=median of y( hrefmedian), or don't add reference line (none) |
title |
title |
lines.by.id |
connect subjects by lines (TRUE), or don't (FALSE) |
id.column |
column name that indicate subject identifier |
fx |
function for transformation of x before plotting |
fy |
function for transformation of y before plotting |
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.one.GOF(subset(sdtab,DV>0),"IPRED","DV")