Re: [R] ggplot2 - geom_text() with date as x-axis

2015-07-30 Thread Hadley Wickham
I'm a bit confused what you're trying to accomplish - the mix of annotate() and geom_text() is confusing. The following code works for me, and I think might be what you want: ggplot(ins, aes(td, glucose)) + geom_point(colour = "red") + geom_line(colour = "blue") + annotate("text", x = texdat

[R] ggplot2 - geom_text() with date as x-axis

2015-07-30 Thread John Kane
I am trying to annotate a graph using geom_text() and I seem to be misunderstanding how to use a date in the co-ordinates---or, at least, I think that is the problem. Code is below. Can anyone give me a suggestion of where I am going wrong? Thanks, John John Kane Kingston ON Canada ###