An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20090508/677ccece/attachment-0001.pl>
postscript()-resolution
3 messages · Henning Wildhagen, Eik Vettorazzi, Gavin Simpson
Hi Henning, maybe you just lost the extension (.eps) of the file when "converting" it with ghostview. But R postscript(..,onefile=FALSE) produces actually an eps compatible file. An (encapsulated) postscript file is a vector based file format, so there isn't such a thing as a "resulution", since it can be arbitrarily rescaled (and a printed version depends on the possible ps-printer dpi.) When converting it (eg with ghostscript) to a bitmap based filetype, such as tiff, you can specify a resulution. Hth. Henning Wildhagen schrieb:
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)
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.
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>