Re: [R] ggplot geom_smooth colour

2012-12-17 Thread Josh Lemaitre
Fortunately for you and your embarrassment, the members of this list are a nurturing and supportive group that truly cares first and foremost about submitters' success. On 12/17/12 12:16 PM, "soon yi" wrote: >Thank you. > >Rather embarrassed. Its fair to say i had rather over comlicated my >atte

Re: [R] ggplot geom_smooth colour

2012-12-17 Thread Jose Iparraguirre
.org [mailto:r-help-boun...@r-project.org] On Behalf Of soon yi Sent: 17 December 2012 17:16 To: r-help@r-project.org Subject: Re: [R] ggplot geom_smooth colour Thank you. Rather embarrassed. Its fair to say i had rather over comlicated my attempts to do this. sy soon yi wrote > Hi >

Re: [R] ggplot geom_smooth colour

2012-12-17 Thread soon yi
Thank you. Rather embarrassed. Its fair to say i had rather over comlicated my attempts to do this. sy soon yi wrote > Hi > > I am using geom_smooth to fit linear regression lines over a scatterplot > for two treatment groups. The default colour for the two lines are blue. I > have been unable t

Re: [R] ggplot geom_smooth colour

2012-12-17 Thread Rui Barradas
Hello, Inline. Em 17-12-2012 15:44, soon yi escreveu: Hi Yes i had look at this but it doesnt quite do what i am wanting. I do not want the smoothed line to be coloured, or dependant on a factor or the default blue. An example, library(ggplot2) df<-data.frame(y=rnorm(100,30,10),x=rnorm(100,2

Re: [R] ggplot geom_smooth colour

2012-12-17 Thread soon yi
Hi Yes i had look at this but it doesnt quite do what i am wanting. I do not want the smoothed line to be coloured, or dependant on a factor or the default blue. An example, library(ggplot2) df<-data.frame(y=rnorm(100,30,10),x=rnorm(100,20,5),treat=factor(rbinom(100,1,0.5))) p1

Re: [R] ggplot geom_smooth colour

2012-12-17 Thread Jose Iparraguirre
roject.org] On Behalf Of soon yi Sent: 17 December 2012 14:17 To: r-help@r-project.org Subject: [R] ggplot geom_smooth colour Hi I am using geom_smooth to fit linear regression lines over a scatterplot for two treatment groups. The default colour for the two lines are blue. I have been unable

[R] ggplot geom_smooth colour

2012-12-17 Thread soon yi
Hi I am using geom_smooth to fit linear regression lines over a scatterplot for two treatment groups. The default colour for the two lines are blue. I have been unable to change this with the usual options. A search online has not suggested any solution / work around. Is there a solution to this?