[R] Display problems X11 device

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Nov 7 14:21:24 CET 2006


On Tue, 7 Nov 2006, Nicolas Mazziotta wrote:

>> Hello,
>>
>> I am running R Version 2.3.1 (2006-06-01) on Kubuntu Edgy Eft 6.10
>> (problems appreared after upgrading from previous version, but I don't know
>> which version of R was included then).
>>
>> I have very weird problems with X11 device: it seems that it cannot display
>> correctly. For instance,
>>
>>  x<-1:10
>>  plot(x)
>>
>> opens the X11 plotting window, but points are not displayed, only box
>> tickmarks. The margin are missing too.
>
> It seems to be an encoding problem: if I set
>
> LC_ALL=C (I used UTF-8)
>
> Plotting works well... But then, my data files (which are utf8) are not
> imported correctly any longer. Is it possible to use UTF-8, so that I don't
> have to change the environment before I launch R?

Yes, it is possible, but you do need your X11 system set up correctly for 
your UTF-8 locale (unstated).  It looks like you have no suitable mappings 
of UTF-8 fonts in X11, or you are running in a locale unknown to X11. (Try 
using en_US.utf8 to test the latter possibility.)  This is not an R issue.

Remote debugging of X11 problems is virtually impossible: please check 
with local expertise.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list