[R] Calling plot with a formula, from within a function, using ..., and xlim

2008-03-09 Thread Charilaos Skiadas
I ran into a weird, to me at least, problem, and hoping someone can shed some light into it. In a nutshell, there seems to be some problem when one calls plot with a formula, from within another function, using ... to pass arguments, and one of those arguments being xlim (and only xlim

Re: [R] Calling plot with a formula, from within a function, using ..., and xlim

2008-03-09 Thread Prof Brian Ripley
You should make a habit of using of R's debugging tools, e.g. traceback() which gives traceback() 6: eval(expr, envir, enclos) 5: FUN(X[[1L]], ...) 4: lapply(dots, eval, data, parent.frame()) 3: plot.formula(k ~ j, data = obj, ...) 2: plot(k ~ j, data = obj, ...) 1: plotw(df, xlim = c(0, 4))