Skip to content
Back to formatted view

Raw Message

Message-ID: <20130326071216.GA2763@slingshot.co.nz>
Date: 2013-03-26T07:12:16Z
From: Patrick Connolly
Subject: How to use parentheses and degree symbol together?

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.  I prefer it to look like this:
> text(0, .4, substitute(paste(Temperature, B * degree, "C)"), list(B = " (")))

It looks fine, but I'm sure there's a more elegant way to do it.

Is there?


-- 
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.   
   ___    Patrick Connolly   
 {~._.~}                   Great minds discuss ideas    
 _( Y )_  	         Average minds discuss events 
(:_~*~_:)                  Small minds discuss people  
 (_)-(_)  	                      ..... Eleanor Roosevelt
	  
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.