Re: [R] grey colored lines and overwriting labels i qqplot2

2011-07-28 Thread Brian Diggs
On 7/25/2011 8:27 PM, Sigrid wrote: Thank you Brian. Sorry for being such a noob. I am not a programmer and just learning R by myself. This is was I typed, but ended up with a couple error messages. df<-structure(list(year = c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, + 1L, 1L, 1L, 1L, 1L, 1L,

Re: [R] grey colored lines and overwriting labels i qqplot2

2011-07-25 Thread Sigrid
Thank you Brian. Sorry for being such a noob. I am not a programmer and just learning R by myself. This is was I typed, but ended up with a couple error messages. > df <-structure(list(year = c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, + 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L,

Re: [R] grey colored lines and overwriting labels i qqplot2

2011-07-19 Thread Brian Diggs
On 7/18/2011 9:23 PM, Sigrid wrote: Hi I apologize for not providing reproducible codes more clearly, and I hope this will be more understandable. I have 14 lines (7 per facet that I would like to add). I will provide you with six of the lines from the data as that should enough data to work wi

Re: [R] grey colored lines and overwriting labels i qqplot2

2011-07-18 Thread Sigrid
Hi I apologize for not providing reproducible codes more clearly, and I hope this will be more understandable. I have 14 lines (7 per facet that I would like to add). I will provide you with six of the lines from the data as that should enough data to work with, and also result in less plotting

Re: [R] grey colored lines and overwriting labels i qqplot2

2011-07-15 Thread Hadley Wickham
> You should only have one scale_ call for each scale type.  Here, you have > three scale_colour_ calls, the first selecting a grey scale, the second > defining a single break with its label (and thus implicitly subsetting on > that single break value), and a second which defines a different > brea

Re: [R] grey colored lines and overwriting labels i qqplot2

2011-07-15 Thread Dennis Murphy
Hi: What did you do and what do you mean by 'add[ing] those 14 lines'? A reproducible example would be helpful. I've used plyr successfully to get model coefficients before, so I'm interested in what you mean by 'ddply is not the right method to add my model.' Here's a toy reproducible example to

Re: [R] grey colored lines and overwriting labels i qqplot2

2011-07-15 Thread Sigrid
Okay, seems like ddply is not the right method to add my model. That is okay, though. I already calculated the slopes and intercepts fore each for the treatments and country. How can I add those 14 lines? -- View this message in context: http://r.789695.n4.nabble.com/grey-colored-lines-and-overwr

Re: [R] grey colored lines and overwriting labels i qqplot2

2011-07-13 Thread Ista Zahn
Hi Sigrid, On Wed, Jul 13, 2011 at 9:47 PM, Sigrid wrote: > Great! Thank you, Brian. > > To answer your question about intercept and slopes, I got them from a > covariance analysis that I had already conducted. It seems like I can not > use the regressions command for the model that I used to get

Re: [R] grey colored lines and overwriting labels i qqplot2

2011-07-13 Thread Sigrid
Great! Thank you, Brian. To answer your question about intercept and slopes, I got them from a covariance analysis that I had already conducted. It seems like I can not use the regressions command for the model that I used to get the intercepts and slopes. I guess 2 factors are the maximum. + ddp

Re: [R] grey colored lines and overwriting labels i qqplot2

2011-07-12 Thread Brian Diggs
Merging two posts (data and questions); see inline below. On 7/11/2011 7:55 PM, Sigrid wrote: Thank you, Dennis. This is my regenerated dput codes. They should be correct as I closed off R and re-ran them based on the dput output. NB, this is the test dataset used later structure(list(year

Re: [R] grey colored lines and overwriting labels i qqplot2

2011-07-11 Thread Dennis Murphy
Hi: I didn't save the original question, but I seem to recall it had something to do with overlapping labels. I don't know if this is exactly what you had in mind, but here's one approach. I named your data frame df below. library(ggplot2) ggplot(df, aes(x = year, y = total)) + geom_point()

Re: [R] grey colored lines and overwriting labels i qqplot2

2011-07-11 Thread Sigrid
Thank you, Dennis. This is my regenerated dput codes. They should be correct as I closed off R and re-ran them based on the dput output. structure(list(year = c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1

Re: [R] grey colored lines and overwriting labels i qqplot2

2011-07-10 Thread Dennis Murphy
Hi: Here's a simple example: > df <- data.frame(x = 1:10, y = rnorm(10)) > dput(df) structure(list(x = 1:10, y = c(-1.55669581922794, -0.6086844726417, -0.414989571570644, -0.202690819994734, -0.421436945159872, 0.00216009424665418, -0.193955384660702, -0.764966890023485, -0.740871219664316, -0.0

Re: [R] grey colored lines and overwriting labels i qqplot2

2011-07-09 Thread Sigrid
Thank you, Ista, for your quick response and tip. I would love to make a reproducible example and was not aware of the dput codes as I am a new user. Is there anywhere I can read up on how to use dput? Sigrid -- View this message in context: http://r.789695.n4.nabble.com/grey-colored-lines-and-

Re: [R] grey colored lines and overwriting labels i qqplot2

2011-07-09 Thread Ista Zahn
Please give a reproducible example. Since we do not have the "test" data we cannot run your code. One way you might do this is by posting the output of dput(test) Best, Ista On Sat, Jul 9, 2011 at 11:24 PM, Sigrid wrote: > I created this graph in ggplot and added ablines to the different facets