[R] handle graph size in eps
benoit.boulinguiez at ensc-rennes.fr
Mon Mar 2 17:26:04 CET 2009
Sorry for the lack of information.
I'm indeed under Windows. I indeed used the menu "save as" in the graph
The matter with the eps obtained was the width of the graph which is lower
than what I had on the screen or what I got when I saved it as a JPEG file.
I tried the "postscript" command
,main="Random distribution around y")
I barely managed to get the ratio I want for the graph
But still when I change the width in the poscript command from 12" to 20"
for instance, it doesn't change anything... why?
BTW how do I stop the pipe between a poscript file and R without closing R?
De : Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk]
Envoyé : lundi 2 mars 2009 11:25
À : Benoit Boulinguiez
Cc : r-help at r-project.org
Objet : Re: [R] handle graph size in eps
On Mon, 2 Mar 2009, Benoit Boulinguiez wrote:
> Hi all,
> I've got a density graph made with the following commands:
The preferred name is windows().
> par (
> ,main="Random distribution around y")
> that's what I've on the screen and I'm OK with that.
> When I save the graph in eps format
How exactly? I know at least three ways to do that. I am guessing that as
you didn't tell us you were on Windows, you also didn't tell us that you
used the menu on the windows() device, but these details do matter.
> I've got that
> what am I doing wrong?
Not telling us what you don't like about this plot.
I think you should consider using dev.copy2eps(), which will give you more
control. Or even better, calling postscript() directly.
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