[R] unicode only works with a second one

Thomas Steiner finbref.2006 at gmail.com
Sun Mar 29 07:48:41 CEST 2009


I forgot to ad some info:

> sessionInfo()
R version 2.9.0 alpha (2009-03-23 r48200)
i386-pc-mingw32

locale:
LC_COLLATE=German_Austria.1252;LC_CTYPE=German_Austria.1252;LC_MONETARY=German_Austria.1252;LC_NUMERIC=C;LC_TIME=German_Austria.1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base


and from http://www.mail-archive.com/r-help@r-project.org/msg44163.html
I learned that it depends on my runing OS / installation. I know that
this is not an R question, but I have no idea how to proceed...

Thomas


2009/3/29 Thomas Steiner <finbref.2006 at gmail.com>:
> I now tried a differnt R version under a drifferent OS, even worse: R
> version 2.9.0 alpha (2009-03-23 r48200) with Windwos XP does only show
> "\u2642". Do I need to install some fonts or so?
> Thanks
> Thomas
>
>
> 2009/3/28 Thomas Steiner <finbref.2006 at gmail.com>:
>> I'd like to paste a zodiac sign on a graph, but it only prints it when
>> I add another unicode ( \u3030) to the desired \u2648 - why?
>> See the examplecode (compare the orange with the skyblue):
>>
>> plot(c(-1,1),c(-4,-2),type="n")
>> text(x=0,y=-3.0,labels="\u2648 \u3030",cex=2.3,col="skyblue")
>> text(x=0,y=-3.2,labels="\u2648",cex=2.3,col="orange")
>> zodiac=c("\u2642 \u2643 \u2644 \u2645 \u2646 \u2647 \u2648 \u2649
>> \u2650 \u2651 \u2652 \u2653")
>> text(x=0,y=-3.5,labels=paste(zodiac,"\u3030"),cex=2.3,col="navy")
>>
>> I use R version 2.8.1 (2008-12-22) under MS Windows Vista.
>> Thanks for help
>> Thomas
>>
>




More information about the R-help mailing list