[R] Fonts on Windows devices

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon May 28 13:47:46 CEST 2001


On Mon, 28 May 2001, Anon. wrote:

> Moi!
>
> I've spent a fun few hours trying to get a plot to look exactly the way
> I want it, and with a lot of help from Venables & Ripley (the book!) and
> the help pages, I've almost got it perfect.  Only one problem now
> remains....
>
> I'm using R1.2.2 on Windoze NT.  I want to draw the graph as a Windows
> metafile (so at the moment I'm using the windows device, i.e. on the
> screen and then right clicking and saving as a metafile).  But I want a
> Times New Roman font.  However, something like this:
>
> XX <- 4
> par(font=XX); plot(1,1, xlab="Thing")
>
> gives me the same font whatever value of XX I use.  So, can I change the
> font?  And if so, how?

plot(1,1, xlab="Thing", font.lab = 4)

(see ?par) except that Times New Roman is not font 4.  Under Windows it is
usually 6.  You can change the font mappings via the file Rdevga: see
the rw-FAQ, for example.


-- 
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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list