Skip to content
Prev 59893 / 398502 Next

unexpected behaviour of 'curve' function

"Guazzetti Stefano" <Stefano.Guazzetti at ausl.re.it> writes:
I think the upshot is just that it is taking the "from" and "to" from
par("usr") from the previous plot and every time you do so, it expands
a little (about 4%). Notice that it does not happen if you do this:

 par(mfrow = c(2,2), xaxs="i")
 for (i in 1:4)
    curve(x^3*(1-x)^7)

Having pu end up in the global environment looks like a bug in
delay() but I don't think it has any influence on this particular
effect.