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

_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to