[R] postscript()-resolution

Gavin Simpson gavin.simpson at ucl.ac.uk
Fri May 8 16:52:33 CEST 2009


On Fri, 2009-05-08 at 15:47 +0200, Henning Wildhagen wrote:
> Dear users,
> 
> another question concerning graphics for publications. My favourite journal 
> wants .eps-graphics,
> and from older postings i adapted the following code:
> 
> postscript(file="Figure1.eps", title="Figure 1", width=11.5, height=8, 
> paper="a4",onefile=FALSE)

I think you need 'paper = "special"' to get an eps file - the hight and
width set the size of the plot, so you don't need to say what paper it
is on for eps.

HTH

G

> 
> However, when checking the properties of this file, it is a .ps and not a 
> .eps file. So, i konverted to .eps with ghostview. Then, for windows it is 
> no longer a file of type "postscript", but just a file of type "file", what 
> makes me nervous. Any clue how to produce .eps-files in a more convenient 
> way?
> In addition, the journal says that the files should be at 600 dpi 
> resolution. Since there is no resolution-argument to postscript(), how 
> can i check/ensure, that the resolution i high enough?
> 
> Thanks for your help,
> 
> Henning
> 
>     
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
-- 
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
 Dr. Gavin Simpson             [t] +44 (0)20 7679 0522
 ECRC, UCL Geography,          [f] +44 (0)20 7679 0565
 Pearson Building,             [e] gavin.simpsonATNOSPAMucl.ac.uk
 Gower Street, London          [w] http://www.ucl.ac.uk/~ucfagls/
 UK. WC1E 6BT.                 [w] http://www.freshwaters.org.uk
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20090508/3a8304ad/attachment-0002.bin>


More information about the R-help mailing list