No, because there is no way, in general, to figure out that equation.
If you are worried about waste, just do all the computation outside of
ggplot2. See the example in geom_abline, for a start.
Hadley
--
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/
the "waste" worry is just philosophical and my computer does not seem to hold it against me. I have seen how to calculate a regression and display it with geom_abline.
But coming back to displaying different equations with facets, maybe in the future we could have a way to direct annotations to the different facets? For instance, prepare a vector of text strings of the same length as the variable used for faceting and a switch in annotate to specify we do not want to annotate one element of the vector in each facet.
Denis
You can put strings on each facet. Do you mean like this?
here is a minimal example:
d <- data.frame(x=1, y=1, f=1:3)
s <- data.frame(f=1:3, x=1, y=1, l=c("tic","tac", "toe"))
ggplot() +
geom_point(aes(x, y), data=d) +
geom_text(aes(x, y, label=l), data=s) +
facet_wrap(~f)
--
Kohske Takahashi <takahash...@gmail.com>
Research Center for Advanced Science and Technology,
The University of Tokyo, Japan.
http://www.fennel.rcast.u-tokyo.ac.jp/profilee_ktakahashi.html
> --
> 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
>
As always, very useful list!
Sincerely,
Denis