[R] Maybe OT: large fonts in eps-figures
paul at stat.auckland.ac.nz
Thu Jun 14 00:21:30 CEST 2001
> > 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.
For the record, this problem has been solved in the grid package.
NOTE that this will be little comfort for most users because the only
high-level plots based on grid so far are those in the lattice package, and
legends are not there yet. Plus, of course, grid and lattice are still
being developed and so are less stable ...
BUT if you are doing lower-level graphics and this sort of problem is a
pain, then it may be worth investigating grid.
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