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, 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 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
          
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.

______________________________________________
R-help@r-project.org 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.

Reply via email to