2007-02-08

R X11 fonts problem on Ubuntu

Forrest Sheng Bao < http://forrest.bao.googlepages.com >

I installed R via apt-get on Ubuntu 6.10. But when I want to plot something, I got the error like this:

forrest@flavia:~$ R
> x<-rnorm(50) > y<-rnorm(50) > plot(x, y)
Error in X11() : could not find any X11 fonts
Check that the Font Path is correct.

After a few minutes of Googling, I found that it is because my default font is UTF8 of US. If I set another font, it will be ok. So you can start R like this
$ LANG=C R

2 comments:

Bijoy said...

informative stuff. kewl blog,interesting stuff you have got here keep up the good worklike to visit again be in touch


regards

Biby Cletus
Kerala,
India

Anonymous said...

Thank you!! :) I've been trying to fix this problem for the last few hours..