[R] R 'could not find any X11 fonts'

From: fsando <fsando_at_fs-analyse.dk>
Date: Thu 05 Apr 2007 - 11:55:53 GMT


I'm having this problem - and I have seen earlier post on the same problem - but the solutions either do not work for me or (being fairly new to linux) I do not understand the suggested actions.

So here goes:
Whenever I try to add a 'main' title R responds with an error that it can't find any X11 fonts.

### Very basic examples ###
# 1. No error (a scatterplot x=1:10 and y=1:10):
plot(1:10,1:10)
# 2. No error (as above, but add a subtitle):
plot(1:10,1:10,sub="subtitle")
# 3a. Error (as above, but add a main title):
plot(1:10,1:10,main="Main title")
# 3b. Error (an equivalent way to produce the same):
plot(1:10,1:10) # no error
title(main="main") # error

# produced error:

 > plot(1:10,1:10,main="main")
Error in title(...) : could not find any X11 fonts Check that the Font Path is correct.

# output from sessionInfo()

 > sessionInfo()
Version 2.3.1 (2006-06-01)
i486-pc-linux-gnu

attached base packages:
[1] "methods" "stats" "graphics" "grDevices" "utils" "datasets" [7] "base"

# I don't know if this is relevant but
# from getOption("X11fonts")
 > getOption('X11fonts')
[1] "-adobe-helvetica-%s-%s-*-*-%d-*-*-*-*-*-*-*" [2] "-adobe-symbol-medium-r-*-*-%d-*-*-*-*-*-*-*"

### examples end ###

The solution may obvious for somebody more familiar with Linux, but as stated, I'm new to Linux, so I would appreciate detailed explanations. Thanks



R-help@stat.math.ethz.ch 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. Received on Thu Apr 05 21:59:34 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 05 Apr 2007 - 12:30:47 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.