--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: http://gist.github.com/270442
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2
The function already _is_ executed group wise - but your function
returns the same values for every group ;) The problem is that the
parameters are executed when the plot is created, not during the
evaluation of the statistical transformation.
In this case, as in most cases when you start to do something more
complicated, you're best off doing the transformation yourself outside
of ggplot2.
Hadley
--
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/
In this case, as in most cases when you start to do something more
complicated, you're best off doing the transformation yourself outside
of ggplot2.