bluesky315 at gmail.com
2010-Feb-08 17:07 UTC
[R] How to reverse the axis direction in log plot?
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.
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?
plot(1:10,1:10,log='xy',xlim=c(10,1)) ----- Try http://prettygraph.com Pretty Graph , the easiest way to make R-powered graphs on the web. -- View this message in context: http://n4.nabble.com/How-to-reverse-the-axis-direction-in-log-plot-tp1473161p1473176.html Sent from the R help mailing list archive at Nabble.com.