View source: R/panel.modelfit.r
panel.modelfit | R Documentation |
Panel function to plot DV, PRED, IPRED overlays for individual profiles
panel.modelfit(
x,
y,
groups,
subscripts,
logX = FALSE,
logY = FALSE,
type.obs = "b",
pred.lty = "solid",
ipred.lty = "solid",
...
)
x, y |
numeric vectors x and y |
groups |
see |
subscripts |
see |
logX |
log the x-axis (defaults to F) |
logY |
log the y-axis (defaults to F) |
type.obs |
line type for observed data (defaults to 'b' for both lines and points) |
pred.lty |
line type for population predictions |
ipred.lty |
line type for individual predictions |
... |
passed to llines() |
Lattice panel output (invisible)
library(Hmisc)
library(lattice)
out = get.xpose.tables('example1',getOption('qpExampleDir'))
out$EVID = 0
trellis.strip.color()
xyplot(Cbind(CONC,PRED,IPRED,EVID) ~ TIME
, groups = ID
, data = subset(out)
, scales = list(x = list(relation = 'free'),y = list(log = 10))
, panel = panel.modelfit
, logY = TRUE
, yscale.components = yscale.components.log10
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.