[R] Reverse order of x-axis

David L Carlson dcarlson at tamu.edu
Mon Jul 30 00:56:21 CEST 2012

Show us what you actually did. Rui's example does not generate a problem
with a log axis but it is an index plot.

This also does not generate any problems:

> set.seed(42)
> x <- runif(10)*100
> y <- runif(10)*100
> plot(x, y, xlim=c(100, 1), log="x")

You wouldn't have used xlim=c(100, 0) and then specified a log axis would
you? Since log(0) is -Inf, that could create problems.

David L Carlson
Associate Professor of Anthropology
Texas A&M University
College Station, TX 77843-4352

> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of sappy
> Sent: Sunday, July 29, 2012 2:41 PM
> To: r-help at r-project.org
> Subject: Re: [R] Reverse order of x-axis
> 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 archive at Nabble.com.
> ______________________________________________
> 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.

More information about the R-help mailing list