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