[R] Putting regression lines on SPLOM

(Ted Harding) Ted.Harding at nessie.mcc.ac.uk
Thu Sep 4 18:47:39 CEST 2003


Sorry Folks,
I'm sure I could suss out the answer myself but I need it
soon ... !

1. Given a set of 4 variables X,Y,Z,W in a dataframe DF, I make
   a scatter-plot matrix using splom(DF).

2. I do all regressions of U on V using lm(U~V), where U and V
   are all 12 different ordered pairs from X,Y,Z,W.

3. Now I would like to superpose the regression lines from (2)
   onto the corresponding panels from (1).

(By the way, the data used for the regressions are not quite
 the same as those used for the plots, since a few observations
 are omitted from the regressions but appear on  the plots,
 so (1) and (2) really are separate operations).

With thanks,
Ted.


--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding at nessie.mcc.ac.uk>
Fax-to-email: +44 (0)870 167 1972
Date: 04-Sep-03                                       Time: 17:47:39
------------------------------ XFMail ------------------------------




More information about the R-help mailing list