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 ###

Re: [R] ggplot2-geom_text()

2009-03-30 Thread Paul Murrell
Hi Felipe Carrillo wrote: > Hi: I need help with geom_text(). > I would like to count the number of Locations > and put the sum of it right above each bar. > > x <- "Location Lake_dens Fish Pred > Lake1 1.132 1 0.115 > Lake1 0.627 1 0.148 > Lake1 1.324

Re: [R] ggplot2-geom_text()

2009-03-30 Thread Felipe Carrillo
Thanks Paul, I tried to use ..count.. once but it didn't work. What I realized I was missing 'stat="bin"'. Thanks for your help. --- On Mon, 3/30/09, Paul Murrell wrote: > From: Paul Murrell > Subject: Re: [R] ggplot2-geom_text() > To: mazatlanmex...@yahoo.

[R] ggplot2-geom_text()

2009-03-30 Thread Felipe Carrillo
Hi: I need help with geom_text(). I would like to count the number of Locations and put the sum of it right above each bar. x <- "Location Lake_dens Fish Pred Lake1 1.132 1 0.115 Lake1 0.627 1 0.148 Lake1 1.324 1 0.104 Lake1 1.265