Re: R-beta: save.plot()

Ross Ihaka (
Sat, 24 Jan 1998 09:25:27 +1300 (NZDT)

Date: Sat, 24 Jan 1998 09:25:27 +1300 (NZDT)
From: Ross Ihaka <>
Message-Id: <>
Subject: Re: R-beta: save.plot()

> From Fri Jan 23 22:46 NZD 1998
> Date: Fri, 23 Jan 1998 10:46:18 +0100
> From: Philippe Lambert <>
> MIME-Version: 1.0
> To:
> Subject: R-beta: save.plot()
> Content-Transfer-Encoding: 7bit
> I currently use R0.61 to produce graphs for use in a tex document.
> I first type
>   x11(orientation='portrait',width=4,height=3.5)
> to fix the size of my graph, produce some plot type commands,
> and then save the whole as an .eps file using save.plot().
> The graph is included in the tex file using
>  \epsffile{file.eps}
> in a figure environment.
> The problem is that the graph occupies a whole page in the
> produced document, whatever the width and height mentioned
> in x11().
> How can this be avoided? (I don't want to use the command 
> postscript because I want to see the graph before saving).
> Many thanks in advance,

I don't know that I can offer immediate help, but Paul Murrell and
I have nearly finished a complete rewrite of the graphics system which
should help.  The save.plot() and print.plot() commands were just
an interim solution and now we do something better.

This stuff will be in 0.62, which doesn't have a release date yet,
but I hope it will be pretty soon.

Quick Summary:

You start device drivers as a present:


but you can have several graphics windows on screen at one time.
When you have an an on-screen picture you like, you can say

	dev.print(file="fig3.eps", height=4, width=5)

(any arguments to "postscript" are acceptable to dev.print).

It will also be possible to resize on-screen graphics windows and have
their contents redrawn to match the new size.  This is not just a
rescaling of the window contents as in Splus, but a complete redrawing
of the picture.

r-help mailing list -- Read
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: