On Mon, 10 Jan 2005 [EMAIL PROTECTED] wrote:
On 10-Jan-05 Prof Brian Ripley wrote:On Mon, 10 Jan 2005, Yves Brostaux wrote:[...] trellis.device(postscript, theme=canonical.theme("postscript", color=F),file="an_phase2_graph.ps", paper="a4", pointsize = 10, onefile=TRUE, horizontal=TRUE)
Everything works fine,but some of these plots shoud be printed in a portrait orientation to look better. I tried to include [...] par.settings = list(horizontal=FALSE) [...] in the lattice plots arguments, but with no success. Is there a way to mix different page orientation in a single postscript device that I missed ?
No. It is hard-coded in the header of the file.
It is technically impossible in postscript, but what one could do is to rotate the coord system on individual pages so all the pages were portrait or landscape. I believe grid viewports can do that for you.
Do you mean "tecnically impossible to achieve it directly using an R postscript device"? Because it is certainly possible to have a PostScript document in which some pages are portrait and some are landscape. And -- with appropriate DSC comments at the right places in the file -- these can be viewed correctly (i.e. the text always horizontal) using standard PS viewers; and they can be correctly converted to PDF to be viewed likewise.
Yes (I used the name of the device, not the capitalized name of the language), because the orientation is set for the device, not the page.
I could follow this up privately if anyone is interested: the details would not be appropriate for posting to the list!
You could always work it out and supply a patch against the R-devel sources. There would need to be a way to specify the orientation of the current page, or probably the next page.
-- Brian D. Ripley, [EMAIL PROTECTED] 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
______________________________________________ R-help@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