[R] Problem with plot in several cases, font issue?

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Jul 15 18:17:11 CEST 2013


On 15/07/2013 15:59, Alice Julien-Laferrière wrote:
> Dear all,
>
> I am having problem on plots in R for some cases.

Your machine has Cairo: Cairo-based X11 devices do not use those fonts. 
  So it seems you have done something you have not shown us.

The fix is to use the Cairo-based X11 devices.  See the R-admin manual 
for more details.

>
> For example:
>
>> plot( 1:10 )
>> text( 1:10, letters[1:10], cex = 1)
>
> works well but :
>
>> plot(1:10)
>> text(1:10, letters[1:10], cex = 0.9)
>
> returns :
> Erreur dans text.default(1:10, letters[1:10], cex = 0.9) :
>    impossible de charger la police X11
> -adobe-helvetica-%s-%s-*-*-%d-*-*-*-*-*-*-*, de face 1 et de taille 11
>
> (sorry for the french).

But it is very easy to set LANGUAGE=en to get American English messages ....

> In this message, for other cases the function may changed (it can be
> axis( ) for example) but it always a font problem.
>
> I encountered this issue various times (with more complicated graphics).
>
> I'm working on ubuntu 12.04 with R 3.0.1 (2013-05-16).
>
>
> The capabilities function returns me:
>    jpeg      png     tiff    tcltk      X11     aqua http/ftp sockets
> TRUE     TRUE     TRUE     TRUE     TRUE    FALSE     TRUE     TRUE
>   libxml     fifo   cledit    iconv      NLS  profmem    cairo
>   TRUE     TRUE     TRUE     TRUE     TRUE    FALSE     TRUE
>
>
> I think this may be an issue with my installation, but I could not
> figured out what was the missing package.
> I tried this on other computers. I did not see the same bug.
>
>
> Thanks in advance for the help,
>
> Alice
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.


-- 
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