Skip to content
Prev 59930 / 398502 Next

unexpected behaviour of 'curve' function

Duncan Murdoch <murdoch at stats.uwo.ca> writes:
Or not used delay() at all. That code looks a bit warped.

AFAICT, you could have 'from' defaulting to lims[1] and 'to' to
lims[2], then in the body let 

    if(missing(from) || missing(to))
        lims <- if(missing(xlim)) 
            if (par("xlog")) 
                10 ^ par("usr")[1:2] 
            else 
                 par("usr")[1:2] 
        else
            xlim

and get the same result (notwithstanding that you probably don't want
to use par("usr") in that way)