Re: [R] How to use parentheses and degree symbol together?

2013-03-27 Thread Patrick Connolly
On Tue, 26-Mar-2013 at 05:05PM +0900, Pascal Oettli wrote: | Hi, | | You are right. The following should solve that problem: | | plot(0, 0, pch = ) | text(0, .5, expression(Temperature~(degree*C))) It's not *exactly* the same. It uses a different font family for the brackets, evidently from

[R] How to use parentheses and degree symbol together?

2013-03-26 Thread Patrick Connolly
I'm interested in using a regular bracket with the degree symbol as an axis label but it's somewhat simpler to show what I mean in a text statement. plot(0, 0, pch = ) If I'm easy to please, this would suffice: text(0, .5, expression(Temperature * degree ~ C)) But I'm not that easily pleased.

Re: [R] How to use parentheses and degree symbol together?

2013-03-26 Thread Pascal Oettli
Hi, Is it what you are looking for? plot(0, 0, pch = ) text(0, .5, expression(Temperature~(degree ~ C))) text(0, .4, substitute(paste(Temperature, B * degree, C)), list(B = ())) Hope this help, Pascal On 26/03/13 16:12, Patrick Connolly wrote: I'm interested in using a regular bracket

Re: [R] How to use parentheses and degree symbol together?

2013-03-26 Thread Patrick Connolly
On Tue, 26-Mar-2013 at 04:20PM +0900, Pascal Oettli wrote: | Hi, | | Is it what you are looking for? | | plot(0, 0, pch = ) | text(0, .5, expression(Temperature~(degree ~ C))) That produces an unwanted space between the degree symbol and the C. The search continues. Thanks | text(0, .4,

Re: [R] How to use parentheses and degree symbol together?

2013-03-26 Thread Pascal Oettli
Hi, You are right. The following should solve that problem: plot(0, 0, pch = ) text(0, .5, expression(Temperature~(degree*C))) HTH, Pascal On 26/03/13 16:55, Patrick Connolly wrote: On Tue, 26-Mar-2013 at 04:20PM +0900, Pascal Oettli wrote: | Hi, | | Is it what you are looking for? | |

Re: [R] How to use parentheses and degree symbol together?

2013-03-26 Thread Patrick Connolly
On Tue, 26-Mar-2013 at 05:05PM +0900, Pascal Oettli wrote: | Hi, | | You are right. The following should solve that problem: | | plot(0, 0, pch = ) | text(0, .5, expression(Temperature~(degree*C))) That does it, and is perfectly readable. Now why didn't I think of that? I knew there had to

Re: [R] How to use parentheses and degree symbol together?

2013-03-26 Thread Pascal Oettli
You're welcome. On 26/03/13 17:12, Patrick Connolly wrote: On Tue, 26-Mar-2013 at 05:05PM +0900, Pascal Oettli wrote: | Hi, | | You are right. The following should solve that problem: | | plot(0, 0, pch = ) | text(0, .5, expression(Temperature~(degree*C))) That does it, and is perfectly