One way is to do it manually plot(..., xaxt = "n") axis(1, at = seq_along(wnd), labels = paste(seq_along(wnd), "h")
The other is to give plot x and y vectors. Michael On Wed, Mar 7, 2012 at 10:25 PM, Jie Tang <totang...@gmail.com> wrote: > hi > I plot a series of observation data every minutes in a day as the > attachment below > > plot(wnd,type='l',lty=1,col='red',lwd=1,xlab=xxlab,ylab=yylab,ylim=YY) > In the figure, the x-axis tickment is the number of data How can I change > it > fore example 1h 2h 3h 4h and so on ? > > > -- > TANG Jie > Email: totang...@gmail.com > Tel: 0086-2154896104 > Shanghai Typhoon Institute,China > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.