[R] X11 font issue on Linux when creating a jpeg or png from a graphNEL object

Mark W Kimpel mwkimpel at gmail.com
Thu May 31 23:35:49 CEST 2007

I am trying to write a png or jpeg file from a plot (graphNEL.object) on 
a cluster running Suse Linux and get the following error using either 

jpeg(filename = fileName, width = width, height = height, pointsize = 
12, bg = "white")

plot(result.gN, layout.param, nodeAttrs = nAttrs, edgeAttrs = eAttrs,

Error during wrapup: could not find any X11 fonts
Check that the Font Path is correct.

When I do xset -q I get:

Keyboard Control:
   auto repeat:  on    key click percent:  0    LED mask:  00000000
   auto repeat delay:  500    repeat rate:  30
   auto repeating keys:  00ffffffdffffbbf
   bell percent:  50    bell pitch:  400    bell duration:  100
Pointer Control:
   acceleration:  2/1    threshold:  4
Screen Saver:
   prefer blanking:  yes    allow exposures:  yes
   timeout:  0    cycle:  0
   default colormap:  0x20    BlackPixel:  0    WhitePixel:  16777215
Font Path:
Bug Mode: compatibility mode is disabled
DPMS (Energy Star):
   Standby: 0    Suspend: 0    Off: 0
   DPMS is Enabled
   Monitor is On
Font cache:
   Server does not have the FontCache Extension

It looks to me like the fonts I need are on the font path per 
http://cran.r-project.org/doc/manuals/R-admin.html, but I am not sure 
what the message about Font cache means.

Here is my sessionInfo():

R version 2.6.0 Under development (unstable) (2007-05-19 r41638)


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

other attached packages:
   Rgraphviz geneplotter     lattice    annotate     Biobase       graph
    "1.14.0"    "1.14.0"    "0.15-5"    "1.14.1"    "1.14.0"    "1.14.1"


Thanks, Mark



Mark W. Kimpel MD  ** Neuroinformatics ** Dept. of Psychiatry
Indiana University School of Medicine

15032 Hunter Court, Westfield, IN  46074

(317) 490-5129 Work, & Mobile & VoiceMail
(317) 663-0513 Home (no voice mail please)

More information about the R-help mailing list