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
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
###
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
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.
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
5 matches
Mail list logo