Index of /~johnm/r/plot-lm

      Name                    Last modified       Size  Description

[DIR] Parent Directory 07-Jun-2008 14:17 - [TXT] plot.lm.R 23-Apr-2005 21:02 5k [TXT] plot.lm.R.diff 23-Apr-2005 21:02 10k [TXT] plot.lm.Rd 23-Apr-2005 21:02 4k [TXT] plot.lm.Rd.diff 23-Apr-2005 21:02 2k [TXT] plot6.lm.RData 26-Apr-2005 14:53 25k [TXT] plot6.lm.Rd 26-Apr-2005 14:53 5k

plot6.lm.RData is an image file for plot6.lm,
an enhanced version of plot.lm() in which
plot 5 is a Residual-Leverage plot, and plot 6
is a Cook's distance vs Leverage/(1-Leverage)
plot.  (The x-axis is however labeled in units
of leverage.)

plot6.lm.Rd is the relevant help file.

In all, the changes are:

(1) A residual versus leverage plot has been added, available
by specifying which = 5, and not included as one of the default
plots.  Contours of Cook's distance are included, by default at
values of 0.5 and 1.0.  The labeled points, if any, are those with
the largest Cook's distances.  The parameter cook.levels can be
changed as required, to control what contours appear.

(2) Remove the word "plot" from the captions for which=2, 3, 4.
It is redundant.

(3) Now that the pos argument to text() is vectorized, use that
in preference to an offset.

(4) For which!=4 or 5, by default use pos=4 on the left half
of the panel, and pos=2 on the right half of the panel.
This prevents labels from appearing outside the plot area,
where they can overlap other graphical features.
The parameter label.pos allows users to change this default.

(5) An additional change, that will deal with the overwriting
of the model formula when deparse(x$call) yields >1 text
string element, is pending.