Hi,

Is there a way of annotating a ggplot plot with mathematical formulae?

I can do

geom_text(aes(label="some text", ...

but I can't do

geom_text(aes(label=expression(x^{n-1}), ...

It gives the error

Error: geom_text requires the following missing aesthetics: label

Is there a convenient equivalent?

Cheers,

Paul

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to