[R] percent sign in plot annotation

From: Martin Keller-Ressel <mkeller_at_fam.tuwien.ac.at>
Date: Wed 17 Jan 2007 - 09:57:49 GMT


I would like to annotate a graph with the expression 'alpha = 5%' (the alpha should be displayed as the greek letter). I tried

> text(1,1,expression(alpha == 5%))

which gives a syntax error.
escaping the percent sign (\%) or doubling (%%) does not help. What do I do?


Martin Keller-Ressel

Martin Keller-Ressel
Research Unit of Financial and Actuarial Mathematics
TU Vienna

R-help@stat.math.ethz.ch mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Wed Jan 17 20:01:49 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 17 Jan 2007 - 10:30:24 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.