Thursday, 15 July 2010

r - How to specify equation for regression line in ggplot2? -



r - How to specify equation for regression line in ggplot2? -

i want create scatterplot in ggplot2 1 or more lines over-layed. having looked @ documentation geom_smooth() , geom_line(), remains unclear me how can specify equations lines want add together plot. understand must basic, please sense free point me toward appropriate documentation must have overlooked.

geom_abline() name of geom you're looking for, e.g. geom_abline(aes(intercept=a,slope=b)). there examples in the online documentation.

r ggplot2

No comments:

Post a Comment