>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
<[email protected]> 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
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.