View source: R/residual-plot-demo-function.R
trellis.residual.plot.demo | R Documentation |
This function uses several features of the latticeExtra package to make plots with one large panel for the main data and a much smaller plot above for the residuals. The data may me split into different levels. In the specific example there are three laboratories, and so the final plot consists of 3 x 2 panels. The main plots have the same scale, and likewise for the residual panels.
require(lattice)
require(latticeExtra)
require(dplyr)
require(grid)
plt <- trellis.residual.plot.demo()
print.trellis.plots(list(plt),y.size=c(0.2,0.8))
A Lattice plot
Claus E. Andersen
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.