Tukey Mean-Difference Plot

USAGE:

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

The following arguments have special meaning within this function. The common meanings for these and all other arguments are listed separately under trellis.args.

ARGUMENTS:

object
an object of class trellis, as returned by xyplot, qqmath , etc.

VALUE:

a data structure of class trellis, which is automatically plotted by print.trellis. The data portion ( x and y values) of object is modified so that the new x is the mean (x+y)/2 and the new y is the difference y-x. The xlab, ylab , and panel values of object are also replaced by the values given to tmd (or its default values).

SEE ALSO:

, .

EXAMPLES:

attach(singer) 
bass2 <- height[voice.part == "Bass 2"] 
tenor1 <- height[voice.part == "Tenor 1"] 
bass.tenor.qq <- qq(which ~ data, data = make.groups(bass2, tenor1)) 
tmd(bass.tenor.qq, aspect = 1, xlab = "Mean (inches)", 
    ylab = "Difference (inches)")