On Feb 29, 2012, at 7:41 PM, Dennis Fisher wrote:

> R 2.14.0
> OS X
> 
> Colleagues
> 
> Probably a simple question but it alludes me at the moment.  I want to embed 
> a registered sign in the text in a legend.  The text would look like:
>       SOMETEXT® 
> with ® superscripted.  
> 
> Thanks in advance.
> 
> Dennis


Dennis,

Depending upon some additional fine tuning, here is a generic example:

  plot(1)
  legend("topright", pch = 1, legend = expression(SOMETEXT ^ symbol("\342")))


See ?plotmath for more information. The above works on my MBP running Lion.

HTH,

Marc Schwartz

______________________________________________
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