[R] Figure rotation

Duncan Murdoch murdoch at stats.uwo.ca
Wed Nov 22 15:48:33 CET 2000


On 22 Nov 2000 09:55:24 +0000, you wrote in message
<dgkzois5o1f.fsf at scs2.ncl.ac.uk>:

>I am experiencing a problem generating a postscript version
>of a figure. The figure appears in the X11 window correctly
>but if I use 
>
>dev.copy(postscript, horiz=TRUE)
>dev.off()
>
>the figure in the postscript file is rotated by -90 degrees and clipped.
>The postscript _page_ is landscape.
>
>Changing this to 
>
>dev.copy(postscript, horiz=FALSE)
>dev.off()
>
>works as it should (all of the figure is printed and the page is
>portrait) but the figure is ill-proportioned.
>
>My figure is a 2x5 matrix of matplots. I use mfrow to define the
>configuration and mfg to define which graph is which.
>
>Any help would be appreciated.

You can set the width and height of a page in the postscript driver;
maybe the workaround

dev.copy(postscript, horiz=TRUE, width=11, height=8.5) 

(or whatever the measurements are for A4 paper, if you want that)
would give you something usable.  Both your original and this
workaround seem to be okay for me in 1.1.1; are you using the latest
version?

Duncan Murdoch
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list