Re: [R] percent sign in plot annotation

2007-01-17 Thread Peter Dalgaard
Martin Keller-Ressel wrote: > Thanks to Bettina, Dimitris and Gavin for their help. > All their solutions work nicely. > For future reference, here are three ways to draw a percent sign in R > plots: > > plot(0:10, 0:10, type = "n") > text(5,7,expression(paste(alpha == 5, "%", sep = ""))) > text(

Re: [R] percent sign in plot annotation

2007-01-17 Thread Martin Keller-Ressel
Thanks to Bettina, Dimitris and Gavin for their help. All their solutions work nicely. For future reference, here are three ways to draw a percent sign in R plots: plot(0:10, 0:10, type = "n") text(5,7,expression(paste(alpha == 5, "%", sep = ""))) text(5, 5, expression(paste(alpha, " = 5%"))) te

Re: [R] percent sign in plot annotation

2007-01-17 Thread Gavin Simpson
On Wed, 2007-01-17 at 09:57 +, Martin Keller-Ressel wrote: > 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

Re: [R] percent sign in plot annotation

2007-01-17 Thread Philipp Pagel
On Wed, Jan 17, 2007 at 09:57:49AM -, Martin Keller-Ressel wrote: > 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%)) text(1,1, expression(paste(alpha == 5, '%')) ) cu

Re: [R] percent sign in plot annotation

2007-01-17 Thread Dimitris Rizopoulos
)16/337015 Web: http://med.kuleuven.be/biostat/ http://www.student.kuleuven.be/~m0390867/dimitris.htm - Original Message - From: "Martin Keller-Ressel" <[EMAIL PROTECTED]> To: Sent: Wednesday, January 17, 2007 10:57 AM Subject: [R] percent sign in plot annotation

Re: [R] percent sign in plot annotation

2007-01-17 Thread Bettina Gruen
Martin Keller-Ressel wrote: > 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%)) Try text(1,1,expression(alpha == 5*"%")) Best, Bettina __

[R] percent sign in plot annotation

2007-01-17 Thread Martin Keller-Ressel
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 Ke