do.one.GOF.Rd
X-Y GOF plot with reflines and data smoother and with caption added as reurned by get.caption
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()
)
data.frame to plot
character string with name of column for x
character string with name of column for y
data columns to set different colors in plot, interpreted as factor
add loess smoother to plot (TRUE), or not (FALSE)
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
connect subjects by lines (TRUE), or don't (FALSE)
column name that indicate subject identifier
function for transformation of x before plotting
function for transformation of y before plotting
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.one.GOF(subset(sdtab,DV>0),"IPRED","DV")
#> `geom_smooth()` using formula = 'y ~ x'