[R] Interaction scatterplots in ggplot with multiple regression lines

2012-09-26 Thread Isaac Petersen
I'm trying to treat a continuous variable as discrete for plotting multiple regression lines in a scatterplot as a function of the level on the moderating variable. In the example below, there is only one regression line plotted to the whole data. I would like a separate regression line for each

Re: [R] Interaction scatterplots in ggplot with multiple regression lines

2012-09-26 Thread John Kane
:45:07 -0400 To: r-help@r-project.org Subject: [R] Interaction scatterplots in ggplot with multiple regression lines I'm trying to treat a continuous variable as discrete for plotting multiple regression lines in a scatterplot as a function of the level on the moderating variable