Re: R-beta: save.plot()

Ross Ihaka (ihaka@stat.auckland.ac.nz)
Sat, 24 Jan 1998 09:25:27 +1300 (NZDT)


Date: Sat, 24 Jan 1998 09:25:27 +1300 (NZDT)
From: Ross Ihaka <ihaka@stat.auckland.ac.nz>
Message-Id: <199801232025.JAA21975@stat1.stat.auckland.ac.nz>
To: plambert@ulg.ac.be, r-help@stat.math.ethz.ch
Subject: Re: R-beta: save.plot()

> From r-help-owner@stat.math.ethz.ch Fri Jan 23 22:46 NZD 1998
> Date: Fri, 23 Jan 1998 10:46:18 +0100
> From: Philippe Lambert <plambert@ulg.ac.be>
> MIME-Version: 1.0
> To: r-help@stat.math.ethz.ch
> 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:

	x11()

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.

	Ross
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._