Re: [R] italics letter in roman string

2007-03-18 Thread Gabor Grothendieck
Sorry, legend= was omitted: plot(1:10) legend(topleft, legend = This ~ study ~ italic(n) == 3293) On 3/18/07, Chabot Denis [EMAIL PROTECTED] wrote: Thank you Marc, Jim and Gabor, I like the solution with expression, nice and simple. Gabor, your solution did not work, probably just a matter

Re: [R] italics letter in roman string

2007-03-18 Thread Chabot Denis
Thank you Marc, Jim and Gabor, I like the solution with expression, nice and simple. Gabor, your solution did not work, probably just a matter of putting the text inside an expression? However it would be nice if the help system pointed to it. A search on italics brought me nothing, one on

Re: [R] italics letter in roman string

2007-03-18 Thread Chabot Denis
Wow, this works, Gabor, but I am mystified. I would have tought an expression needed the word expression, and/or a text string needed to be within quotes. What is happening here, exactly? Why the use of ~? I tried without and it no longer works. Thanks in advance, Denis Le 07-03-18 à

Re: [R] italics letter in roman string

2007-03-18 Thread Gabor Grothendieck
Its a formula, not an expression -- but it will coerce formulas. Without ~ its no longer a formula. On 3/18/07, Chabot Denis [EMAIL PROTECTED] wrote: Wow, this works, Gabor, but I am mystified. I would have tought an expression needed the word expression, and/or a text string needed to be

Re: [R] italics letter in roman string

2007-03-18 Thread Duncan Murdoch
On 3/18/2007 8:56 AM, Chabot Denis wrote: Thank you Marc, Jim and Gabor, I like the solution with expression, nice and simple. Gabor, your solution did not work, probably just a matter of putting the text inside an expression? However it would be nice if the help system pointed to it.

[R] italics letter in roman string

2007-03-17 Thread Chabot Denis
Hi, As part of the legend to a plot, I need to have the n in italics because it is a requirement of the journal I aim to publish in: This study, n = 3293 Presently I have: legend(20, 105, This study, n = 3293, pch=1, col=rgb(0,0,0,0.5), pt.cex=0.3, cex=0.8, bty=n) I suppose

Re: [R] italics letter in roman string

2007-03-17 Thread Marc Schwartz
On Sat, 2007-03-17 at 22:01 -0400, Chabot Denis wrote: Hi, As part of the legend to a plot, I need to have the n in italics because it is a requirement of the journal I aim to publish in: This study, n = 3293 Presently I have: legend(20, 105, This study, n = 3293, pch=1,

Re: [R] italics letter in roman string

2007-03-17 Thread jim holtman
It is easier with: legend('topleft', expression(paste(This study, , italic(n) == 3295))) On 3/17/07, Marc Schwartz [EMAIL PROTECTED] wrote: On Sat, 2007-03-17 at 22:01 -0400, Chabot Denis wrote: Hi, As part of the legend to a plot, I need to have the n in italics because it is a

Re: [R] italics letter in roman string

2007-03-17 Thread Marc Schwartz
On Sat, 2007-03-17 at 21:56 -0500, Marc Schwartz wrote: On Sat, 2007-03-17 at 22:01 -0400, Chabot Denis wrote: Hi, As part of the legend to a plot, I need to have the n in italics because it is a requirement of the journal I aim to publish in: This study, n = 3293 Presently I

Re: [R] italics letter in roman string

2007-03-17 Thread Gabor Grothendieck
Try this: plot(1:10) legend(topleft, This ~ study ~ italic(n) == 3293) On 3/17/07, Chabot Denis [EMAIL PROTECTED] wrote: Hi, As part of the legend to a plot, I need to have the n in italics because it is a requirement of the journal I aim to publish in: This study, n = 3293 Presently I