[R] Mixing portrait/landscape in a postscript file

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Jan 10 17:34:18 CET 2005


On Mon, 10 Jan 2005, Yves Brostaux wrote:

> Dear list,
>
> I'm stuck with a little graphical problem. I'm generating several lattice 
> plots which are printed in a single postcript device opened by
>
>> 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.

-- 
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




More information about the R-help mailing list