[R] percent sign in plot annotation
Dimitris Rizopoulos
dimitris.rizopoulos at med.kuleuven.be
Wed Jan 17 10:12:37 CET 2007
you can try
text(1, 1, expression(paste(alpha, " = 5%")))
I hope it helps.
Best,
Dimitris
----
Dimitris Rizopoulos
Ph.D. Student
Biostatistical Centre
School of Public Health
Catholic University of Leuven
Address: Kapucijnenvoer 35, Leuven, Belgium
Tel: +32/(0)16/336899
Fax: +32/(0)16/337015
Web: http://med.kuleuven.be/biostat/
http://www.student.kuleuven.be/~m0390867/dimitris.htm
----- Original Message -----
From: "Martin Keller-Ressel" <mkeller at fam.tuwien.ac.at>
To: <r-help at stat.math.ethz.ch>
Sent: Wednesday, January 17, 2007 10:57 AM
Subject: [R] percent sign in plot annotation
> Hello,
>
> 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?
>
> Thanks,
>
> Martin Keller-Ressel
>
>
>
> --
> Martin Keller-Ressel
> Research Unit of Financial and Actuarial Mathematics
> TU Vienna
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
More information about the R-help
mailing list