Re: [R] Unreadable labels -- in x11() and derivative

From: Martin Maechler <>
Date: Mon 22 May 2006 - 18:24:14 EST

>>>>> "Maciej" == Maciej Bliziński <>
>>>>> on Sun, 21 May 2006 14:48:13 +0200 writes:

    Maciej> Playing around with examples from MASS4, I found a font problem in the
    Maciej> mosaicplot in R-2.3.0. It doesn't happen in other plots. Running this
    Maciej> example from MASS4, page 326...

    Maciej> library(MASS)
    Maciej> caith1 <- as.matrix(caith)

    Maciej> names(dimnames(caith1)) <- c("eyes", "hair")     Maciej> mosaicplot(caith1, color = TRUE)

    Maciej> ...I get an image as attached. The column and row labels are unreadable.     Maciej> It is true for both x11() and png() devices.


    Maciej> Looking at the demo(graphics), I can also recognize some unreadable     Maciej> labels. Do you think it's only the matter of the X-Window system?

    Maciej> Installed fonts?

    Maciej> Any hints appreciated.

Yes, it's a matter of the X - font server of your X-window system. As help(png) clearly notes, png() itself is also using the x11() internals.

For me, the labels are all well readable for the above example; even here (at work) where the font server is still not providing correct font sizes too often for my taste -- e.g. when drawing graphs with the Rgraphviz package {from bioconductor}.

Martin Maechler, ETH Zurich mailing list PLEASE do read the posting guide! Received on Mon May 22 18:46:08 2006

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 Mon 22 May 2006 - 20:10:17 EST.

Mailing list information is available at Please read the posting guide before posting to the list.