[R-SIG-Mac] R, Unicode, and OS X

Simon Urbanek simon.urbanek at r-project.org
Wed Oct 26 17:48:59 CEST 2005


George,

On Oct 26, 2005, at 5:26 PM, George W. Gilchrist wrote:

> Is it possible to enter a unicode string and get the corresponding  
> character using R on OS X?

If you enter an unicode string, it will be plotted correctly, no  
magic there.

> For example, points(x, y, pch="\u2642") is alleged to plot the male  
> symbol (available on my system in several fonts) at points x and  
> y , but what I get in R is "u2642".

You don't want a string, you want a character and it's as easy as

points(x,y, pch=0x2642)

Cheers,
Simon



More information about the R-SIG-Mac mailing list