Hi there, if I copy an x11() graphics device to an eps-file (with dev.copy2eps()) the font in the legend is very large and doesn't fit to the legend box in the eps-file (same with a postscript file). I'm not sure if this is a R problem rather than a ghostscript one. But is there a way to solve this problem in R or depends this on my ghostscript installation? System: R Version 1.2.3 on Debian Linux 2.2, ghostscript version 5.10. Thanks, Sven -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 Wed, 13 Jun 2001, Sven Garbade wrote:> Hi there, > > if I copy an x11() graphics device to an eps-file (with dev.copy2eps()) > the font in the legend is very large and doesn't fit to the legend box > in the eps-file (same with a postscript file). I'm not sure if this is a > R problem rather than a ghostscript one. > > But is there a way to solve this problem in R or depends this on my > ghostscript installation?Set the ps arg when you copy. Or (better) don't use dev.copy2eps() but re-plot on a postscript device. All dev.copy and hence dev.copy2eps does is to replay the graphics calls, and in some cases device-specific decisions have already been made when the call was first run. -- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Sven Garbade <garbade at psy.uni-muenchen.de> writes:> Hi there, > > if I copy an x11() graphics device to an eps-file (with dev.copy2eps()) > the font in the legend is very large and doesn't fit to the legend box > in the eps-file (same with a postscript file). I'm not sure if this is a > R problem rather than a ghostscript one. > > But is there a way to solve this problem in R or depends this on my > ghostscript installation? > > System: R Version 1.2.3 on Debian Linux 2.2, ghostscript version 5.10.This is generally an R problem. When copying from one device to another, or even when resizing the X11 window, the font scaling sometimes doesn't come out right. That's hard to avoid if you don't want the "SAS-effect" where fonts become tall+narrow or wide+low if you scale x/y differently. What I ususally do is to set the dimensions on the X11 device so that they match the desired output as closely as possible, e.g. X11(height=3.5,width=4.4,pointsize=8) -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._