Arabic text in graph R

I had a problem with building the Arabic text, it looks good on the console, but it is not quite right. (inverted and single letters)

the code:

x<-"السلام عليكم"
> x
[1] "السلام عليكم"
> plot(1:10,main=x)

gives

enter image description here

Some information about the corresponding session:

R version 3.1.2 (2014-10-31)
Platform: x86_64-apple-darwin13.4.0 (64-bit)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

I tried so many suggested solutions, but all of them just don't work.

+4
source share
1 answer

Apparently you are not the first to encounter a problem .
If you have access to a Linux system, this problem will not be resolved.
This is probably a problem with the right to left support in R and R Studio for Mac OS.

0
source

All Articles