Re: [R] changing x-axis in plot

2014-05-06 Thread Jim Lemon
On 05/06/2014 07:07 PM, Babak Bastan wrote: Hi experts I woul like to change my x-axis. Like this: 10,...,2,...,1 I am using this code: r<-c(1:10) plot(r, axes=FALSE, frame.plot=TRUE,xlim=c(10,1)) axis(1,at=10/seq(1:10)) axis(2, at=axTicks(2), axTicks(2)) but my x-sxis i still: 1,..., 2,...,1

Re: [R] changing x-axis in plot

2014-05-06 Thread David McPearson
On Tue, 6 May 2014 09:07:55 + Babak Bastan wrote > Hi experts > > I woul like to change my x-axis. Like this: 10,...,2,...,1 > > I am using this code: > > r<-c(1:10) > plot(r, axes=FALSE, frame.plot=TRUE,xlim=c(10,1)) > axis(1,at=10/seq(1:10)) > axis(2, at=axTicks(2), axTicks(2)) > > but

[R] changing x-axis in plot

2014-05-06 Thread Babak Bastan
Hi experts I woul like to change my x-axis. Like this: 10,...,2,...,1 I am using this code: r<-c(1:10) plot(r, axes=FALSE, frame.plot=TRUE,xlim=c(10,1)) axis(1,at=10/seq(1:10)) axis(2, at=axTicks(2), axTicks(2)) but my x-sxis i still: 1,..., 2,...,10 What should I do? [[alternative HT