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

Alice Julien-Laferrière alice.julien-laferriere at univ-lyon1.fr
Tue Jul 16 10:26:30 CEST 2013


Thanks for the help.

As  indicated into the R-admin manual, it was an ubuntu install problem.
But it only shows in R, as I do not use special fonts usually.





Le 15/07/2013 18:17, Prof Brian Ripley a écrit :
> 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.
>
>



More information about the R-help mailing list