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? Normally I would switch to drawing the graph in Postscript, but my collaborator's computer won't handle it. TIA Bob -- Bob O'Hara Metapopulation Research Group Division of Population Biology Department of Ecology and Systematics PO Box 17 (Arkadiankatu 7) FIN-00014 University of Helsinki Finland tel: +358 9 191 28782 fax: +358 9 191 28701 email: bob.ohara at helsinki.fi To induce catatonia, visit: http://www.helsinki.fi/science/metapop/ It is being said of a certain poet, that though he tortures the English language, he has still never yet succeeded in forcing it to reveal his meaning - Beachcomber -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._