[R] plot question

Spencer Graves spencer.graves at pdf.com
Thu May 15 20:15:38 CEST 2003


Have you considered "predict.lm"?  The documentation includes an example 
that will produce predicted lines plus both confidence and tolerance 
intervals.  Follow that with "points(x, y)" to add the data points.

hope this helps.  spencer graves

David Nogués wrote:
> Hello:
> 
> Im a novice user of R. I was triying develop graphs with plot.lm or 
> plot(gam) but I dont obtain a desire result. I would like to create a 
> plot from lm, glm and gam objects showing:
> 
> 1- Fit curve
> 2- Raw data of predictor and response variables as points.
> 3- Confidence intervals (95%)
> 
> Anybody can help me?




More information about the R-help mailing list