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,
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,
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
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
> 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
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
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
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
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
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
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()
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
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
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-
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
15 matches
Mail list logo