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

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Sat 22 Jul 2006 - 02:02:42 EST

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@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@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

______________________________________________
R-help@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.
Received on Sat Jul 22 03:16:24 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 Sat 22 Jul 2006 - 04:16:03 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.