Re: [R] Reverse order of x-axis

2012-07-29 Thread David L Carlson
riginal Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of sappy > Sent: Sunday, July 29, 2012 2:41 PM > To: r-help@r-project.org > Subject: Re: [R] Reverse order of x-axis > > Thanks, > > for the moment it works. But is there

Re: [R] Reverse order of x-axis

2012-07-29 Thread Rolf Turner
(1) Please show context; r-help is *not* nabble. (2) You might like to investigate the revaxis() function from the "plotrix" package. cheers, Rolf Turner On 30/07/12 07:41, sappy wrote: Thanks, for the moment it works. But is there a possibility for a logarithmic x-Axis? When i

Re: [R] Reverse order of x-axis

2012-07-29 Thread Rui Barradas
Hello, Just reverse the xlim values, it defaults to c(min, max), use c(max, min). x <- 1:10 plot(x) plot(x, xlim=c(10, 1)) Hope this helps, Rui Barradas Em 29-07-2012 18:23, sappy escreveu: Hello, does anybody know, how to reverse the elements of the x-axis. At now my x-axis for example goe

Re: [R] Reverse order of x-axis

2012-07-29 Thread sappy
Thanks, for the moment it works. But is there a possibility for a logarithmic x-Axis? When i use log='x' i get only a vertical line. Greetings -- View this message in context: http://r.789695.n4.nabble.com/Reverse-order-of-x-axis-tp4638275p4638282.html Sent from the R help mailing list archiv

[R] Reverse order of x-axis

2012-07-29 Thread sappy
Hello, does anybody know, how to reverse the elements of the x-axis. At now my x-axis for example goes from 0, 0.5, 1, 1.5, ... to 99.5, 100.0 Is there a way to change the x-axis, like this: 100.0, 99.5, 99.0, ..., 0.5, 0. The 100.0 should start at left x-axis and the 0 shold be on the right. Gre