I am trying to send a manuscript to a journal. One of the figures build by R is in the right orientation and 4 are rotated clockwise 90 deg in the preview. I used the right click save to PS option and I used the command line postscript("c:/temp/fig04.eps",bg="transparent",onefile = TRUE ,pointsize=20,paper = "letter",height=8,width=8,horizontal=FALSE,family = "Helvetica", font = "Helvetica") I treed Horizontal=TRUE Ghostsript show the rotated image but not the preview from the journal. :-( Is there anything to change that the - unknown system - of the journal will be forced to display the image in the right direction? Regards Knut
The problem is a well-known one in viewers looking at whole pages, especially PS -> PDF converters. R figures are particularly vulnerable as they have text running both horizontally and vertically (with normal axes). Please do follow exactly the advice on the postscript help page. The postscript produced for a single R plot is EPS (_Encapsulated PostScript_) compatible, and can be included into other documents, e.g., into LaTeX, using '\includegraphics{<filename>}'. For use in this way you will probably want to set 'horizontal = FALSE, onefile = FALSE, paper = "special"'. If you have done that, suggest to your publisher that they turn autorotation off. On Wed, 18 Jan 2006, Knut Krueger wrote:> > I am trying to send a manuscript to a journal.> One of the figures build by R is in the right orientation and 4 are > rotated clockwise 90 deg in the preview.> I used the right click save to PS option and I used the command line > > postscript("c:/temp/fig04.eps",bg="transparent",onefile = TRUE > ,pointsize=20,paper = "letter",height=8,width=8,horizontal=FALSE,family > = "Helvetica", font = "Helvetica") > > I treed Horizontal=TRUE Ghostsript show the rotated image but not the > preview from the journal. :-( > > > Is there anything to change that the - unknown system - of the journal > will be forced to display the image in the right direction?-- 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
Knut Krueger wrote:> I am trying to send a manuscript to a journal. > One of the figures build by R is in the right orientation and 4 are rotated clockwise 90 deg in the preview. > > I used the right click save to PS option and I used the command line > > postscript("c:/temp/fig04.eps",bg="transparent",onefile = TRUE ,pointsize=20,paper = "letter",height=8,width=8,horizontal=FALSE,family = "Helvetica", font = "Helvetica") >Please use paper="special" for files to be included in documents.> I treed Horizontal=TRUE Ghostsript show the rotated image but not the preview from the journal. :-( > > > Is there anything to change that the - unknown system - of the journal will be forced to display the image in the right direction?Always hard to tell what an "unknown" system is doing. We do not know of any rotation problems with R graphics, hence please ask the poeple running that "unknown system". Uwe Ligges> Regards Knut > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
On Wed, 2006-01-18 at 13:04 +0100, Knut Krueger wrote:> I am trying to send a manuscript to a journal. > One of the figures build by R is in the right orientation and 4 are > rotated clockwise 90 deg in the preview. > > I used the right click save to PS option and I used the command line > > postscript("c:/temp/fig04.eps",bg="transparent",onefile > TRUE ,pointsize=20,paper > "letter",height=8,width=8,horizontal=FALSE,family = "Helvetica", font > = "Helvetica") > > I treed Horizontal=TRUE Ghostsript show the rotated image but not the > preview from the journal. :-( > > > Is there anything to change that the - unknown system - of the journal > will be forced to display the image in the right direction? > > Regards KnutOne of the first things to do is to use 'onefile = FALSE', 'horizontal FALSE' and paper = "special"'. This is in the Details section of ?postscript, which provides guidance on the creation of EPS files for inclusion in publications. I would try that to see if that provides a more consistent formatting of the plots. You don't indicate what you are using to create the manuscript itself (ie. Word, LaTeX, or ?) to help us in considering other possibilities (such as autorotation). If the above does not help, please provide a reproducible example of the plot code and what you are using for the manuscript. HTH, Marc Schwartz
Uwe Ligges schrieb:> > Always hard to tell what an "unknown" system is doing. We do not know > of any rotation problems with R graphics, hence please ask the poeple > running that "unknown system".I tried to ask, they converted the files to rotated tiff (as a free service) but used old files from the first submission, and they did not give me any answer why one file is not rotated the other 3 are rotated ... Sorry that I could not give you any more hints, but I will ask them to switch off auto rotation. Regards Knut
On Wed, 2006-01-18 at 20:48 +0100, Knut Krueger wrote:> > Marc Schwartz (via MN) schrieb: > > > > >Unfortunately, it may have precluded my being able to replicate exactly > >what you are seeing, despite being intimately familiar with one of the > >functions (barplot2 ;-) that you are using. > > > >I did create some data that would generally fit what you are doing in > >both cases, however, probably because I am on Linux and you are on > >Windows, where both device and GS differences may be problematic, I > >could not get the second to be rotated relative to the page. > > > > > I think I described the problem not clearly or misunderstood your text. > There was no Figure rotated on my system - only in the PDF file from the > jurnal.That is correct. The rotation occurs during the "post processing" of the EPS file in the full document (or single page) when using latex+dvips +ps2pdf (or similar tool chain). Not typically the standalone EPS file itself. Regards, Marc
Knut Krueger schrieb:>I am trying to send a manuscript to a journal. >One of the figures build by R is in the right orientation and 4 are rotated clockwise 90 deg in the preview. > > >So I realized that they rotated the Paper not the figure. I did not realize it because I did not set the Arcrobat reader to a full size view. So I saw only the rotaded figure not the hole page. maybe this is a better hint. And the hint from the journal: Please be advised that your eps figure file could have rotated in the built PDF due to its size which is larger than the paper. but I think that could not be the problem, because the figure is in the right rotation at the page. Regards Knut