Learn R Programming

lattice (version 0.11-8)

tmd: Tukey Mean-Difference Plot

Description

Create Tukey Mean-Difference Plots from a trellis object returned by xyplot and qq

Usage

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

Arguments

Value

An object of class ``trellis''. The `update' method can be used to update components of the object and the `print' method (usually called by default) will plot it on an appropriate plotting device.

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 and y=y-x.

tmd uses the update method for ``trellis'' objects, which processes all extra arguments supplied to tmd.

See Also

panel.tmd, xyplot, Lattice

Examples

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

Run the code above in your browser using DataLab