View source: R/panel.residual.r
panel.residual | R Documentation |
Panel function to plot residuals vs any covariate or DV vs (I)PRED
panel.residual(
x,
y,
abline = "identity",
col = obs.color,
cex = 1,
span = 0.8,
lwd.loess = 2,
smooth.col = smooth.color,
...
)
x, y |
numeric vectors x and y |
abline |
if "identity" (default) the line of identity is drawn. If anything else no abline is drawn. |
col |
symbol color (defaults to obs.color) |
cex |
symbol size |
span |
passed to panel.loess() |
lwd.loess |
line width of loess smooth |
smooth.col |
color of smooth line |
... |
passed to panel.xyplot(), panel.abline(), and panel.loess() |
Lattice panel output (invisible)
library(lattice)
library(reshape2)
trellis.strip.color()
xyplot(CONC ~ value | variable
, data = subset(
reshape2::melt(
get.xpose.tables('example1', getOption('qpExampleDir')
)
, measure.vars = c('PRED','IPRED')
), EVID == 0)
, subset = EVID == 0
, aspect = 1
, scales = list(x = list(relation = 'free'))
, panel = panel.residual
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.