[R] Isolating a single plot from plots produced simultaneously

Thomas Lumley tlumley at u.washington.edu
Tue Jun 9 18:24:51 CEST 2009


On Tue, 9 Jun 2009, Laura Bonnett wrote:

> I'd like to isolate the second plot produced (the estimated functional
> form of the influence of age on the log relative hazard) so that I can
> use the 'points' function to add the linear predictors for the
> untransformed and the log-transformed models.  In the usual situation
> one would produce a plot and then type:
>

I think predict(, type="terms") does what you want.

     -thomas


Thomas Lumley			Assoc. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle




More information about the R-help mailing list