Re: [R] Is it possible to right align text in R graphics?

2012-01-15 Thread Majid Einian
Hello Tall, sorry for late reply. I meant just the direction of the closing parentheses. This is the way it should be (and is on my linux system) : http://myup.ir/images/93380129091837074902.png This is the way it is (on windows system) http://myup.ir/images/40188837660458525731.png On 1/3/12,

Re: [R] Is it possible to right align text in R graphics?

2012-01-03 Thread Tal Galili
Hello Majid, When you say the text renders correctly on one but not the other, you mean the fonts, or the directionality? Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com

Re: [R] Is it possible to right align text in R graphics?

2012-01-03 Thread Tal Galili
Thanks to an e-mail from David, I realized that non-Hebrew speakers will not be able to know how a proper right-to-left output should look like (sorry for not thinking about it myself...) Here is some example code of how the output should look like vs how it currently looks. This is shown only

Re: [R] Is it possible to right align text in R graphics?

2012-01-03 Thread Tal Galili
And I forgot to include the link to the image, here it is: http://dl.dropbox.com/u/5371432/right-to-left-text%20example%202.png On Wed, Jan 4, 2012 at 12:30 AM, Tal Galili tal.gal...@gmail.com wrote: Thanks to an e-mail from David, I realized that non-Hebrew speakers will not be able to

Re: [R] Is it possible to right align text in R graphics?

2012-01-03 Thread Hadley Wickham
FYI, if you're looking for the technical term for this type of text it's bidi: http://en.wikipedia.org/wiki/Bi-directional_text Hadley On Tue, Jan 3, 2012 at 4:32 PM, Tal Galili tal.gal...@gmail.com wrote: And I forgot to include the link to the image, here it is:

Re: [R] Is it possible to right align text in R graphics?

2012-01-03 Thread David Winsemius
On Jan 3, 2012, at 5:32 PM, Tal Galili wrote: And I forgot to include the link to the image, here it is: http://dl.dropbox.com/u/5371432/right-to-left-text%20example%202.png I'm assuming this should be compared to the second of your three examples. The aleph ( ש ) is on the left end of

Re: [R] Is it possible to right align text in R graphics?

2012-01-02 Thread Majid Einian
Incidentally, gMail (on Windows) correctly rendered the Hebrew (Shalom Olam), so it would seem that this probably is a plotting issue rather than an OS issue I tested a Persian text with this kind of parentheses in linux and windows, and it seem it is indeed an OS issue. The text renders

Re: [R] Is it possible to right align text in R graphics?

2012-01-01 Thread Tal Galili
Hi Duncan, Thank you for your reply. I am also using Win 7. And I would be surprised if this would be different in any OS. I guess the answer is that there is no way for making text in a graph in R be right-to-left. Thanks again, and happy new year, Tal Contact

Re: [R] Is it possible to right align text in R graphics?

2012-01-01 Thread Jeff Newmiller
I don't know any language other than English, much less one written right-to-left, but a quick search shows that the RGtk2 package includes some support for such things. My gut reaction is that right-to-left support would be highly device dependent, and since devices often interact closely

Re: [R] Is it possible to right align text in R graphics?

2012-01-01 Thread Richard M. Heiberger
Tal, Plese look at this thread https://stat.ethz.ch/pipermail/r-help/2011-October/292786.html right justify right-axis tick values in lattice and see if the function provided by David Winsemius will work for you. I included it in the HH package as HH:::panel.axis.right Rich On Sun, Jan 1, 2012

Re: [R] Is it possible to right align text in R graphics?

2011-12-31 Thread Duncan Mackay
Hi Tal I think it might be an OS problem whether it is a graphics as well I do not know. I Just copied and pasted the line into R and it seems ok OS win 7 version platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major 2

Re: [R] Is it possible to right align text in R graphics?

2011-12-30 Thread Tal Galili
Hi Bert, Thank you for the idea - but this will only move the text to different sides of the text... Right-to-left languages are a known issue in open source projects (libreoffice, WordPress, etc...) Any advice on who should I contact regarding this? (Not that it is urgent for me, but long term

[R] Is it possible to right align text in R graphics?

2011-12-29 Thread Tal Galili
Hello all, The following line of code includes a right-to-left language text, yet the R graphics engine displays it from left to right. One problem this causes is when there are parenthesis in the test, here is a basic example? plot(1:10, main = שלום (טקסט)) Is there a way to make sure

Re: [R] Is it possible to right align text in R graphics?

2011-12-29 Thread Jean V Adams
Tal Galili wrote on 12/29/2011 10:52:55 AM: Hello all, The following line of code includes a right-to-left language text, yet the R graphics engine displays it from left to right. One problem this causes is when there are parenthesis in the test, here is a basic example? plot(1:10,

Re: [R] Is it possible to right align text in R graphics?

2011-12-29 Thread Tal Galili
Thank you for the reply Jean, but no, it would not fix it :) plot(1:10, main=rev.string(שלום (עולם))) What would fix it is if I had added a number after the parenthesis, but that is a hack, not a solution... plot(1:10, main=שלום (עולם) 1) Contact

Re: [R] Is it possible to right align text in R graphics?

2011-12-29 Thread Bert Gunter
Tal: Does the adj argument for ?par (and also in text()) not do this for you? Incidentally, gMail (on Windows) correctly rendered the Hebrew (Shalom Olam), so it would seem that this probably is a plotting issue rather than an OS issue. However, I confess that my knees turn to jelly with