panel.cwres: Lattice panel function for CWRES plots

View source: R/panel.cwres.r

panel.cwresR Documentation

Lattice panel function for CWRES plots

Description

Panel function to plot CWRES vs any covariate

Usage

panel.cwres(
  x,
  y,
  ...,
  col = obs.color,
  col.line = abline.color,
  pch = 1,
  col.loess = smooth.color,
  family = "gaussian"
)

Arguments

x, y

numeric vectors x and y

...

any other arguments to be passed on to the lattice call

col

symbol color (defaults to obs.color)

col.line

color of abline

pch

symbol

col.loess

color of smooth line

family

passed to loess.smooth (by way of panel.loess)

Value

Lattice panel output (invisible)

Examples

library(lattice)
library(reshape2)
 out = get.xpose.tables("example2", getOption("qpExampleDir"))
 trellis.strip.color()
xyplot(CWRES ~ value | variable
   , data = subset(reshape2::melt(out, measure.vars = c('PRED','TIME')),EVID == 0)
   , aspect = 1
   , scales = list(x = list(relation = "free"))
   , panel = panel.cwres,
   family = 'symmetric'
   )

qPharmetra/qpToolkit documentation built on May 24, 2023, 8:52 a.m.