[R] Histogram font

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Nov 16 13:27:02 CET 2005


On Wed, 16 Nov 2005, Christopher Willmot wrote:

> The hist() command produces this message on my machine...
>
> Error in title(main = main, sub = sub, xlab = xlab, ylab = ylab, ...) :
>         X11 font at size 14 could not be loaded
>
> How can I either (a) determine what font is required,
>  or (b) specify one of the fonts I have available?

?options (see option X11fonts).

> This problem is specific to hist(), plot() works fine.
> I am using R on SuSE Linux v9.3, from the KDE desktop.

This usually means that 100dpi fonts are missing or not in the X11 font 
path.  The code assumes that the standard 75dpi and where necessary 100dpi 
fonts are installed.

The issue is title(), not hist() and not plot() as the error message 
shows.  So calling plot(main=) would also fail.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list