Re: [R] plotting a function with given formula in ggplot2

2011-11-10 Thread Curiouslearn
t; > On Thursday 10 November 2011 13:47:10 Curiouslearn wrote: >> Hi All, >> >> I have a scatter plot produced using ggplot2 and I want to add the >> regression line to this scatter plot. I suppose I can use >> geom_smooth() to do this, but for the sake of learnin

[R] plotting a function with given formula in ggplot2

2011-11-10 Thread Curiouslearn
Hi All, I have a scatter plot produced using ggplot2 and I want to add the regression line to this scatter plot. I suppose I can use geom_smooth() to do this, but for the sake of learning ( I am new both to R and ggplot2), I want to try and add it as a function (something that curve() does in the