Skip to content
Prev 10481 / 398502 Next

Chart Size

On Fri, 30 Mar 2001, Bill Simpson wrote:

            
The problem is your use of dev.print here: the ticks change but not the
text size.  dev.copy does not use the new pointsize: try

x11(width=3, height=3, pointsize=8)
x11(width=6, height=6, pointsize=16)
dev.set(2)
plot(1:10)
dev.copy()

Re-scaling works as expected for new plots but not re-played plots.
Plotting directly on a bigger device is that answer: plots then scale
exactly, except for perhaps default line widths and other things where
rasterization effects come into play.  In short, if you want postscript,
use postscript() directly.

dev.copy in this respect differs from S-PLUS, but I have always assumed it
was deliberate as calculating things like plotmath have to be done at
a known font size.

The rescaling of a windows() device works differently, and does rescale
the fonts.