Possible Duplicate:
ggplot2: Adding Regression Line Equation and R2 on graph
I'm graphing data in a scatter plot with
ggplot(work.rootsfnp.h1, aes(x=fnpltrfac, y=rootsscore, group=1)) +
geom_smooth(method=lm, se = F) + geom_point(shape=1)
Is there a "quick" way to add a basic legend that includes the formula of the line of best fit as well as the correlation coefficient?