Skip to content
Prev 43884 / 398528 Next

substitute, eval, quote and functions

Douglas Bates <bates at stat.wisc.edu> writes:
The plot labels won't come out right then. I think David was
looking for something like 

function(data, x, y)
        eval(substitute(plot(x,y)), data)

or to be able to pass names:

function(data, x, y)
   eval(substitute(plot(x,y),list(x=as.name(x), y=as.name(y))), data)