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

bluesky315 at gmail.com bluesky315 at gmail.com
Mon Feb 8 18:30:28 CET 2010


On Mon, Feb 8, 2010 at 11:13 AM, Hrishi Mittal <hrishimittal at gmail.com> wrote:
>
> plot(1:10,1:10,log='xy',xlim=c(10,1))

What if I want to use the automatically computed limits? I could use
the following command. But it is not a very clean user interface, as
the user has to compute the min and the max. Is there a way that the
user doesn't have to compute them?

plot(u,v,log='xy',xlim=c(max(u),min(u)))



> -----
> 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.
>
> ______________________________________________
> 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