panel.cwres | R Documentation |
Panel function to plot CWRES vs any covariate
panel.cwres(
x,
y,
...,
col = obs.color,
col.line = abline.color,
pch = 1,
col.loess = smooth.color,
family = "gaussian"
)
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 |
Lattice panel output (invisible)
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'
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.