[R] Maybe OT: large fonts in eps-figures

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Wed Jun 13 11:21:21 CEST 2001

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.


   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

More information about the R-help mailing list