[R] plot confidence limits of a regression line

Juliet Hannah juliet.hannah at gmail.com
Sun Mar 8 02:11:34 CET 2009


How about

library(ggplot2)
qplot(wt, mpg, data = mtcars, geom=c("point", "smooth"),method = "lm").

On Sat, Mar 7, 2009 at 6:19 PM, Martin Batholdy <batholdy at googlemail.com> wrote:
> hi,
>
>
> is there an easy way to plot the "confidence lines" or "confidence area" of
> the beta weight in a scatterplot?
>
>
> like in this plot;
> http://www.ssc.wisc.edu/sscc/pubs/screenshots/4-25/4-25_4.png
>
>
>
> thanks!
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>




More information about the R-help mailing list