Re: [R] Putting names on a ggplot

2009-10-22 Thread John Kane
--- On Tue, 10/20/09, hadley wickham wrote: > From: hadley wickham > Subject: Re: [R] Putting names on a ggplot > To: "John Kane" > Cc: m...@z107.de, "R R-help" > Received: Tuesday, October 20, 2009, 10:59 AM > On Sun, Oct 18, 2009 at 10:29 AM, > J

Re: [R] Putting names on a ggplot - fortune candidate?

2009-10-21 Thread Jim Lemon
On 10/21/2009 01:59 AM, hadley wickham wrote: It currently works (because I can't figure out how to make it an error) but you really should not do it. Please pardon my nomination, Hadley, but that is just too good to pass up. Jim __ R-help@r-pro

Re: [R] Putting names on a ggplot

2009-10-20 Thread hadley wickham
On Sun, Oct 18, 2009 at 10:29 AM, John Kane wrote: > Thanks Stefan, the annotate approach works beautifully.  I had not got that > far in Hadley's book apparently :( > > I'm not convinced though that the explaination > >> you shouldn't use aes in this case since nampost, >> temprange, ... are not

Re: [R] Putting names on a ggplot

2009-10-18 Thread John Kane
--- On Sun, 10/18/09, m...@z107.de wrote: > From: m...@z107.de > Subject: Re: [R] Putting names on a ggplot > To: "John Kane" > Cc: "R R-help" > Received: Sunday, October 18, 2009, 6:05 PM > hello, > > On Sun, Oct 18, 2009 at 08:29:19AM -0

Re: [R] Putting names on a ggplot

2009-10-18 Thread ml
tercept= mbs) + > ylab("Temperature (C)") + xlab("Daily Temperatures") + > geom_text(aes(x = namposts+2.5, y = trange[2], label = mlabs), > data = timedata, size = 2.5, colour='black', hjust = 0, vjust = 0) > p > > >

Re: [R] Putting names on a ggplot

2009-10-18 Thread John Kane
================== --- On Sat, 10/17/09, m...@z107.de wrote: > From: m...@z107.de > Subject: Re: [R] Putting names on a ggplot > To: "John Kane" > Cc: "R R-help" > Received: Saturday, October 17, 2009, 5:53 PM > hi, > >

Re: [R] Putting names on a ggplot

2009-10-17 Thread smu
hi, On Sat, Oct 17, 2009 at 02:04:43PM -0700, John Kane wrote: > Putting names on a ggplot > > p <- p + geom_text(aes(x = namposts + 2.5, y = temprange[2], label = mlabs), > data = year, size = 2.5, colour='black', hjust = 0, vjust = 0) > you shouldn't use aes in this case since nampost,

Re: [R] Putting names on a ggplot

2009-10-17 Thread ml
hi, On Sat, Oct 17, 2009 at 02:04:43PM -0700, John Kane wrote: > Putting names on a ggplot > > p <- p + geom_text(aes(x = namposts + 2.5, y = temprange[2], label = > mlabs), > data = year, size = 2.5, colour='black', hjust = 0, vjust = 0) > you shouldn't use aes in this case since nampost

[R] Putting names on a ggplot

2009-10-17 Thread John Kane
Putting names on a ggplot Can anyone suggest what I am doing wrong here. I am plotting daily temperatures at Ottawa Ontario for 2008 broken down by months, I seperate them by lines and want to put the names of the months at the top of the chart ( with in the graphing area) Everything is working