[R] dev.copy(pdf) messes up legend box

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed May 21 16:08:33 CEST 2003


You need to match the pointsizes on the source and the destination
devices, relative to the width and height.  It is not the box which is too
small but the text which is too large.  (See the comment in MASS4 p.454.)

Alternatively, re-plot on the intended destination device.

On Wed, 21 May 2003, Jonathan Williams wrote:

> When I use dev.print(pdf) and dev.copy(pdf) to print the *same*
> graph, the box around the legend is too small using dev.copy(pdf)
> - it cuts off the last letter of the (7-letter) labels.

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




More information about the R-help mailing list