[R] How to export to pdf in landscape orientation?

Sarah Goslee sarah.goslee at gmail.com
Sat Jun 25 20:11:29 CEST 2011


>From the help for pdf:

  paper: the target paper size.  The choices are ‘"a4"’, ‘"letter"’,
          ‘"legal"’ (or ‘"us"’) and ‘"executive"’ (and these can be
          capitalized), or ‘"a4r"’ and ‘"USr"’ for rotated
          (‘landscape’).

So I'd use paper='a4r'. You can also set the width and height
directly.

Sarah

On Sat, Jun 25, 2011 at 1:46 PM, Juan Andres Hernandez
<jhernandezcabrera at gmail.com> wrote:
> Does anybody know how to get a pdf file with landscape orientation?.
>
>  pdf(file= 'my_file.pdf' ,onefile=T,paper='A4')
>    plot(sin, -pi, 2*pi)
>   dev.off()
>
> Thank's in advance
>
> Juan A. Hernandez
> Spain



-- 
Sarah Goslee
http://www.functionaldiversity.org



More information about the R-help mailing list