[R] How to reverse the axis direction in log plot?

jim holtman jholtman at gmail.com
Mon Feb 8 18:10:08 CET 2010


reverse the xlim;

plot(1:10, 1:10, log='xy', xlim=rev(range(1:10)))


On Mon, Feb 8, 2010 at 12:07 PM,  <bluesky315 at gmail.com> wrote:
> The following command gives me a plot where the axes are in log scale
> but 'x' increases in the right direction.
>
> plot(1:10,1:10, log='xy')
>
> I want to change the plot such that it is still in log scale but 'x'
> decreases rather increases in the right direction. I'm wondering if
> there is an option to do so.
>
> ______________________________________________
> R-help at 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.
>



-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem that you are trying to solve?



More information about the R-help mailing list