Skip to content
Prev 106240 / 398506 Next

xyplot: logarithmic y-axis

On 12/15/06, RMan54 <RMan54 at cox.net> wrote:
You need to learn more about (1) R functions and (2) R's scoping
rules. Your last argument (logY) is not doing what you think it's
doing (which doesn't really matter because of the scoping rules).

Your error is caused because in

panel.curve(myCurve, from=0, to=96, n=300, ..., log=logY)

the 'log' argument is not being passed to myCurve (nor is it supposed
to). However, you should be able to replace it by

panel.curve(myCurve(x, log = logY), from=0, to=96, n=300, ...)

-Deepayan