On Feb 8, 2010, at 12:30 PM, bluesky...@gmail.com wrote:

On Mon, Feb 8, 2010 at 11:13 AM, Hrishi Mittal <hrishimit...@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.

It's not clear why that would be. Both max and min are valid R functions. Your code would run without further modification

Is there a way that the
user doesn't have to compute them?

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

Equivalently:

 plot(u,v,log='xy',xlim = rev(range(u) ) )



David Winsemius, MD
Heritage Laboratories
West Hartford, CT

______________________________________________
R-help@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.

Reply via email to