Alice Julien-Laferrière
2013-Jul-15 14:59 UTC
[R] Problem with plot in several cases, font issue?
Dear all, I am having problem on plots in R for some cases. 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). 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
Prof Brian Ripley
2013-Jul-15 16:17 UTC
[R] Problem with plot in several cases, font issue?
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
Possibly Parallel Threads
- ubuntu hardy packages 32bit no tcltk support
- Default R Font Changed After Upgrade to Debian 8
- png(type='cairo'): point symbols without boarders are not anti-aliased?
- Default R Font Changed After Upgrade to Debian 8
- incorrect DLL path for Rbitmap.dll on Windows