I am using R 2.4.1 with Windows XP. I use the plot command in a fairly simple script and I use the right mouse click on the plot and save as a postscript file. I used the resultant file in a paper which was submitted electronically. However, I get the following response from the journal: Your manuscript has been unsubmitted because you failed to meet the submission guidelines as indicated below: -Your figures must be submitted in TIFF or EPS format according to the following minimum resolutions: 1200 dpi for black and white line art (simple bar graphs, charts, etc.) 300dpi for halftones (black and white photographs) 600dpi for combination halftones (Photographs that also contain line art such as labeling or thin lines) Does anyone know how to produce the correct settings for the journal (i.e. 1200 dpi)? Thankyou Chris W [[alternative HTML version deleted]]
See comments inline: Chris Walker wrote:> I am using R 2.4.1 with Windows XP.First, you are using a version of R that is a year and a half and 6 releases out of date. Version 2.7.0 was just released this past week. You can download it from your nearest CRAN mirror.> I use the plot command in a fairly simple script and I use the right mouse > click on the plot and save as a postscript file. I used the resultant file > in a paper which was submitted electronically. However, I get the following > response from the journal: > > Your manuscript has been unsubmitted because you failed to meet the > submission guidelines as indicated below: > > -Your figures must be submitted in TIFF or EPS format according to the > following minimum resolutions: > > 1200 dpi for black and white line art (simple bar graphs, charts, etc.) > 300dpi for halftones (black and white photographs) 600dpi for combination > halftones (Photographs that also contain line art such as labeling or thin > lines) > > Does anyone know how to produce the correct settings for the journal (i.e. > 1200 dpi)?Their comments about resolution apply to TIFF files and not EPS files, which are resolution independent. It has been several years since I last used the Windows version of R, but if the 'File Save As' menu for the plot indicates Postscript and not Encapsulated Postscript, that is your problem. You can use dev.copy2eps(...) after you have plotted the graphic to the screen device, or better, plot directly to an EPS file by surrounding your plot code with: postscript("FileName.eps", width = X, height = Y, paper = "special", horizontal = FALSE, onepage = FALSE) YOUR PLOT CODE HERE dev.off() See ?dev.copy and/or ?postscript for more help. And...be sure to install the latest version of R. :-) HTH, Marc Schwartz
On 26-Apr-08 19:30:35, Chris Walker wrote:> I am using R 2.4.1 with Windows XP. > > I use the plot command in a fairly simple script and I use > the right mouse click on the plot and save as a postscript > file. I used the resultant file in a paper which was submitted > electronically. However, I get the following response from the > journal: > > Your manuscript has been unsubmitted because you failed to meet > the submission guidelines as indicated below: > > -Your figures must be submitted in TIFF or EPS format according > to the following minimum resolutions: > > 1200 dpi for black and white line art (simple bar graphs, charts, > etc.) 300dpi for halftones (black and white photographs) 600dpi > for combination halftones (Photographs that also contain line art > such as labeling or thin lines) > > Does anyone know how to produce the correct settings for the > journal (i.e.1200 dpi)? > > Thankyou > Chris WI'm about to swim in (for me) murky waters here, since I don't use R on Windows, so things may happen on that platform which I'm not aware of. But I just want to make general comments about PostScript and R. 1. R's postscript() device produces EPS, so that bit should be satisfied. 2. Normally, except when a graphic has been converted from a bit-mapped format, a PostScript (or EPS) file does not have any intrinsic resolution, so long as what it represents is vector graphics (which includes the rendering of letters, numerals, symbols, etc.). Any resolution applying to the result when a PS/EPS file is displayed/printed depends on the resolution of the "end device" (screen/printer etc.) which does the rendering. In principle, PS/EPS has "infinite" resolution (for instance, printing from EPS to photograpic film using a laser beam could have resolution as fine as 100,000). 3. It is of course possible that the software generating the graphic implements certain things as bit-maps in the first place, in which case what goes in the PS/EPS file will inevitably do the same. You do not say what sort of graphic you have plotted, so one cannot tell whether (3) applies. However, my feeling is that either the journal has got the wrong impression of what you sent them, or what was intended to be an EPS file in fact got created/converted to some other (bit-mapped) format before you extracted it and sent it off. Sorry not to be more specifically helpful, but I especially wanted to make points (1) and (2) above, for clarification. Best wishes, Ted. -------------------------------------------------------------------- E-Mail: (Ted Harding) <Ted.Harding at manchester.ac.uk> Fax-to-email: +44 (0)870 094 0861 Date: 26-Apr-08 Time: 23:22:36 ------------------------------ XFMail ------------------------------
Slightly off-topic, but I have been slightly surprised in recent years at how much trouble I have with the graphics people at journals -- I have been asked for TIFF files when I submit PDF, PostScript instead of PDF, TIFF instead of PNG ... I can do most of these things by regenerating the figure or using ImageMagick, ps2pdf,pdf2ps, etc., but it really surprises me that the graphics departments of major academic publishers don't seem to be able to translate between standard, well-behaved vector formats and bitmaps, or between different kinds of standard bitmaps. Maybe they (a) want to save time by making sure authors do these conversions or (b) don't have their experts on the front desk ... ? Ben Bolker
To all those who helped with this problem (Ted, Jon, Marc and Prof. Ripley). When I submitted the postscript files to the journal, I had given them the extension ".ps" even though they were (of course) encapsulated postscript. I decided to simply rename the files with the .eps extension and resubmit. This time the images were accepted without question. It would appear to be a case of someone assuming that I had submitted postscript without bothering to check that it was encapsulated. Thanks again Chris [[alternative HTML version deleted]]
Can I adjust the resolution in PDF output ? Thank you very much. -- View this message in context: http://www.nabble.com/resolution-%28dpi%29-problem-tp16916677p21346108.html Sent from the R help mailing list archive at Nabble.com.
On Wed, 7 Jan 2009, Timthy Chang wrote:> Can I adjust the resolution in PDF output ?Not in R: the output of pdf() is vector graphics (if that is what you meant) and sized in inches not pixels. -- 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