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