On Aug 4, 2011, at 2:40 PM, Eduardo M. A. M. Mendes wrote:
> Dear R-users
>
> I am trying to understand how Sweave works by running some simple examples.
> In the example I am working with there is a chunk where the R-commands
> related to plotting a figure are placed. When running R CMD Sweave … ,
> pdflatex the output is a portrait figure. I wonder whether it would be
> possible to change the orientation to landscape (not in the latex file but in
> Rnw file).
>
> Many thanks
>
> Ed
You can use the lscape package by placing:
\usepackage{lscape}
in your LaTeX preamble in the .Rnw file. Then use:
\begin{landscape}
other code here
\end{landscape}
That way you can create a landscape oriented page within a document that might
otherwise contain portrait orientation pages.
HTH,
Marc Schwartz
______________________________________________
[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.