Re: [R] how to modify the tickment of x-axis

2012-03-18 Thread Jim Lemon
On 03/18/2012 02:00 PM, Jie Tang wrote: I have found that the dimension number of label must be equal with the dimension of the plot data by your this method. if we have two data in every hour,it seems can not show the correct tickment? .plot(1:20, xaxt = "n") axis(1, at = 1:10, label = paste(1:

Re: [R] how to modify the tickment of x-axis

2012-03-17 Thread R. Michael Weylandt
No, the axis can be ticked anywhere you wish: plot(1:20, xaxt = "n") axis(1, at = seq(1, 20, by = 2), label = paste(seq(1, 20, by = 2), "h")) Michael On Sat, Mar 17, 2012 at 11:00 PM, Jie Tang wrote: > I have found that  the dimension number of label must be equal with the > dimension of the pl

Re: [R] how to modify the tickment of x-axis

2012-03-17 Thread Jie Tang
I have found that the dimension number of label must be equal with the dimension of the plot data by your this method. if we have two data in every hour,it seems can not show the correct tickment? .plot(1:20, xaxt = "n") axis(1, at = 1:10, label = paste(1:10, "h", sep = "")) # Happy axis! 2012/

Re: [R] how to modify the tickment of x-axis

2012-03-17 Thread Jie Tang
> I am plotting several lines in one figure by such codes. But it is strange > that > > only this first tickment of x-axis is shown. > > plot(winddata$v1,type='l', > lty=1,col='black',lwd=1,xlab=xxlab,ylab=yylab,ylim=YY, xaxt = "n") > par(new=T) > plot(winddata$v2,type='l', > lty=1,col='blue',lwd=1

Re: [R] how to modify the tickment of x-axis

2012-03-17 Thread Jeff Newmiller
You use dput to put your data into an email so we can know what your input is. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go...

Re: [R] how to modify the tickment of x-axis

2012-03-17 Thread R. Michael Weylandt
Did you look at the example I gave you when you asked this question 10 days ago? I'll repeat for completeness op <- par() par(ask = TRUE) plot(1:10) # Unhappy axis plot(1:10, xaxt = "n") axis(1, at = 1:10, label = paste(1:10, "h", sep = "")) # Happy axis! par(ask = op$ask) The (good) advice to u

Re: [R] how to modify the tickment of x-axis

2012-03-17 Thread Jie Tang
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 ? someone has told me that

Re: [R] how to modify the tickment of x-axis

2012-03-08 Thread John Kane
il.com > Sent: Thu, 8 Mar 2012 11:25:21 +0800 > To: r-help@r-project.org > Subject: [R] how to modify the tickment of x-axis > > 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'

Re: [R] how to modify the tickment of x-axis

2012-03-08 Thread R. Michael Weylandt
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 wrote: > hi >  I plot a series of observation data every minutes in a day as the > at

[R] how to modify the tickment of x-axis

2012-03-07 Thread Jie Tang
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: to