trellis.residual.plot.demo: Function for demonstrating how to make residual plots in...

View source: R/residual-plot-demo-function.R

trellis.residual.plot.demoR Documentation

Function for demonstrating how to make residual plots in lattice

Description

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.

Usage

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))

Value

A Lattice plot

Author(s)

Claus E. Andersen


claus-e-andersen/clanLattice documentation built on Oct. 14, 2023, 10:41 a.m.