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