[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 
device:

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

plot(result.gN, layout.param, nodeAttrs = nAttrs, edgeAttrs = eAttrs,
   main="Title")
dev.off()

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
                         fadfffdfffdfe5ef
                         ffffffffffffffff
                         ffffffffffffffff
   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
Colors:
   default colormap:  0x20    BlackPixel:  0    WhitePixel:  16777215
Font Path:
 
/usr/share/fonts/misc,/usr/share/fonts/truetype,/usr/share/fonts/Type1,/usr/share/fonts/100dpi,/usr/share/fonts/75dpi
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)
powerpc64-unknown-linux-gnu

locale:
LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=en_US.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C

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"

Advice?

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