[R] : Arial font for text in lattice plots under Linux

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Jul 21 18:02:42 CEST 2006

This is a question about devices, not lattice per se, so applies to all 
forms of plotting.

For jpeg, you can specify the fonts via the 'fonts' argument: see ?X11.

For postscript, you can convert the fonts to Type 1 via e.g. ttf2pt1, or 
you can use ttf2afm to make .afm files and a postscript interpreter that 
can handle TrueType fonts.

On Fri, 21 Jul 2006, Peter Ho wrote:

> Hi,
> I have been asked by a publisher to change the font style of a lattice 
> plot in my manuscript. I have consulted documentation on trellis 
> graphics and the excellent book "R graphics", but am still not sure how 
> I could create plots with Arial as the font style for text in the plot.  
> I am running R (Version 2.3.1 (2006-06-01)) under debian Linux. I have 
> msttcorefonts installed.
> Will it be possible to do this with jpeg() as a device? Or with 
> postscript()?
> Peter
> ______________________________________________
> R-help at 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.

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