Learn R Programming

lattice (version 0.2-3)

tmd: Tukey Mean-Difference Plot

Description

Create Tukey Mean-Difference Plots from a trellis object returned by xyplot (and perhaps qq as well in future)

Usage

tmd(object, xlab = "mean", ylab = "difference", ...)

Arguments

object
An object of class ``trellis''. Currently only the value returned by xyplot gives sensible results.
xlab
x label
ylab
y label
...
other arguments, see trellis.args

Value

  • An object of class ``trellis''.

synopsis

tmd(object, aspect="fill", as.table=object$as.table, between=list(x = object$x.between, y = object$y.between), key=object$key, layout=object$layout, main=object$main, page=object$page, panel=panel.tmd, par.strip.text, prepanel, scales, strip=object$strip, sub=object$sub, xlab="mean", xlim, ylab="fifference", ylim, ...)

Details

The Tukey Mean-difference plot is produced by modifying the (x,y) values of each panel as follows: the new coordinates are given by x=(x+y)/2, y=y-x.

Most arguments given to produce object are transmitted to tmd, with the notable exceptions of aspect and scales. (This behaviour is different from S-Plus.)

See Also

panel.tmd, trellis.args, Lattice

Examples

Run this code
data(singer)
tmd(qqmath(~height|voice.part, data = singer)
)

Run the code above in your browser using DataLab