Re: [R] adding infrequent date labels to x-axis

2010-02-23 Thread emorway
Hi Hrishi, With regard to the post you helped me out with, I've got my graph almost dialed in the way I would like it. There was one more small thing my searches have been unable to turn up. I've tried searching with stagger labels offset Labels alternate labels to no avail. the pertinent

Re: [R] adding infrequent date labels to x-axis

2010-02-23 Thread Peter Ehlers
On 2010-02-23 12:58, emorway wrote: Hi Hrishi, With regard to the post you helped me out with, I've got my graph almost dialed in the way I would like it. There was one more small thing my searches have been unable to turn up. I've tried searching with stagger labels offset Labels alternate

[R] adding infrequent date labels to x-axis

2010-02-22 Thread emorway
I'm sure there is a clever way to do the following, but I've been unable to find it on this forum or by writing my own functions. I have 8 years worth of weekly data but would like to restrict the labels on the x-axis to months only. I've included the first year's worth of data below. My line

Re: [R] adding infrequent date labels to x-axis

2010-02-22 Thread emorway
Hello Hrishi, The command you suggested plotted the years on the x-axis only. It was the same exact plot as the one I included in the original post. Respectfully, Eric -- View this message in context: http://n4.nabble.com/adding-infrequent-date-labels-to-x-axis-tp1564804p1564875.html Sent

Re: [R] adding infrequent date labels to x-axis

2010-02-22 Thread Hrishi Mittal
Hi emorway, It seems to me that all you need is one command: plot(as.Date(cropped.cast1$date,%Y-%m-%d),cropped.cast1$Frac_ET_Satsfd_mean) - Try http://prettygraph.com Pretty Graph , the easiest way to make R-powered graphs on the web. -- View this message in context:

Re: [R] adding infrequent date labels to x-axis

2010-02-22 Thread Hrishi Mittal
Hi emorway, You are right. I tried the command only with one year's data, in which case it plots month names as labels. But for multiple years, the labels become years. I found this old post useful - http://n4.nabble.com/Month-tick-marks-on-a-plot-td879121.html#a879121. Picking the code from the

Re: [R] adding infrequent date labels to x-axis

2010-02-22 Thread emorway
Hello Hrishi, That worked great, and in the process I learned some new ways of going about writing R code. Thank you very much for helping me out! Eric -- View this message in context: http://n4.nabble.com/adding-infrequent-date-labels-to-x-axis-tp1564804p1564943.html Sent from the R help