[R] Plotting a registered sign

Marc Schwartz marc_schwartz at me.com
Thu Mar 1 03:55:48 CET 2012

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:
> with ® superscripted.  
> Thanks in advance.
> Dennis


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

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

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


Marc Schwartz

More information about the R-help mailing list