[R] Question about ggplot2

Hadley Wickham hadley at rice.edu
Fri May 27 00:23:37 CEST 2011


> If a function uses substitute() or its equivalent to avoid evaluating
> its arguments in the normal way, you are pretty much forced to use
> eval() with the output of substitute() or call() or use do.call()
> to evaluate the arguments it will not evaluate for itself.

Which is why I'd argue all functions that do so should provide a
version that doesn't do non-standard lookup/evaluation - and that's
the idea behind aes_string.

Hadley

-- 
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/



More information about the R-help mailing list