Re: [R] time series plot: x-axis problem

2013-04-26 Thread Rui Barradas
rr, xlab="2012 - 2013", ylab="event freq", xaxt = "n", col="blue") axis(1, time(rr), lab1,cex.axis = .9, tcl = -.5, las = 2) A.K. - Original Message - From: Rui Barradas To: Jerry Cc: r-help@r-project.org Sent: Friday, April 26, 2013 5:25 AM S

Re: [R] time series plot: x-axis problem

2013-04-26 Thread arun
) A.K. - Original Message - From: Rui Barradas To: Jerry Cc: r-help@r-project.org Sent: Friday, April 26, 2013 5:25 AM Subject: Re: [R] time series plot: x-axis problem Hello, Try the following. (rr=ts(rr,start=c(2012,5),frequency=12)) plot(rr, xlab="2012 - 2013", ylab="event f

Re: [R] time series plot: x-axis problem

2013-04-26 Thread Rui Barradas
Hello, Try the following. (rr=ts(rr,start=c(2012,5),frequency=12)) plot(rr, xlab="2012 - 2013", ylab="event freq", xaxt = "n", col="blue") labs <- format(as.Date(time(rr)), "%b-%Y") axis(1, time(rr), labs, cex.axis = .9, tcl = -.5, las = 2) Hope this helps, Rui Barradas Em 25-04-2013 19:1

[R] time series plot: x-axis problem

2013-04-26 Thread Jerry
Hi, I'm trying to plot a simple time series. I'm running into an issue with x-axis The codes below will produce a plot with correct x-axis showing from Jan to Dec > rr=c(3,2,4,5,4,5,3,3,6,2,4,2) > (rr=ts(rr,start=c(2012,1),frequency=12)) > win.graph(width=6.5, height=2.5,pointsize=8) > plot(r