Re: [R] Sweave - landscape figure

2011-08-07 Thread Eduardo Mendes
Hello I think you are right. Includegraphics outside od R chunck seems to avoid unnecessary float space. Many thanks Ed. On Sat, Aug 6, 2011 at 10:18 PM, Duncan Mackay wrote: > Hi Eduardo > > I have just realized that I did not my send previous message to r-help > > You do not need to put it

Re: [R] Sweave - landscape figure

2011-08-06 Thread Duncan Mackay
Hi Eduardo I have just realized that I did not my send previous message to r-help You do not need to put it in a float but you must create the graph in a chunk, all you need is the \includegraphic command This may avoid float space problems and make it easier for many graphs. with the appropriat

Re: [R] Sweave - landscape figure

2011-08-06 Thread Eduardo Mendes
Hi there Would you be so kind to send an example, please? Many thanks Ed On Fri, Aug 5, 2011 at 9:43 PM, Duncan Mackay wrote: > Hi > > The are three places where the size of the graphs can be customised > 1 Sweave with options > 2 R in the device > 3 Latex specifying dimensions or set scale=

Re: [R] Sweave - landscape figure

2011-08-05 Thread Duncan Mackay
Hi Eduado It you may get some info for multiple graphs in latex with Keith Reckdahl 2006 Using Imported Graphics in LATEX and pdfLATEX there may be some later version Duncan At 03:16 06/08/2011, you wrote: Hi there This is what I did: <>= print(xyplot(data.flow,xlab="Time",ylab="Flow")) @

Re: [R] Sweave - landscape figure

2011-08-05 Thread Duncan Mackay
Hi The are three places where the size of the graphs can be customised 1 Sweave with options 2 R in the device 3 Latex specifying dimensions or set scale=magnification. However if your are using it in a float it there is a maximum size depending on the number of floats in a page. see \floatsep an

Re: [R] Sweave - landscape figure

2011-08-05 Thread Eduardo M. A. M. Mendes
Hi there This is what I did: <>= print(xyplot(data.flow,xlab="Time",ylab="Flow")) @ \begin{figure} \includegraphics[angle=90,width=0.8\textheight]{Myfig1} \caption{First Data} \end{figure} and here is the latex error. ! LaTeX Error: File `Myfig1' not found. See the LaTeX manual or LaTeX Comp

Re: [R] Sweave - landscape figure

2011-08-05 Thread Duncan Murdoch
On 05/08/2011 10:23 AM, Eduardo Mendes wrote: Hello Many thanks for the replies. Solution 1 (landscape package) works but the output figure is kind of small. Solution2: includegraphics outside - Unfortunately it does not work. Includegraphics cannot find Myfig. You did something you aren't

Re: [R] Sweave - landscape figure

2011-08-05 Thread Eduardo Mendes
Hello Many thanks for the replies. Solution 1 (landscape package) works but the output figure is kind of small. Solution2: includegraphics outside - Unfortunately it does not work. Includegraphics cannot find Myfig. Solution 3- \usepackage[figureright]{rotating} works and the output figure is

Re: [R] Sweave - landscape figure

2011-08-04 Thread Duncan Mackay
Hi Eduardo in the preamble put \usepackage[figureright]{rotating} see manual for figureright if you do not like it and then some graphics with options where needed \begin{sidewaysfigure} \centering \includegraphics[width=,% clip=true,% trim=0in 0in 0in 0in,%

Re: [R] Sweave - landscape figure

2011-08-04 Thread Marc Schwartz
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 Swe

Re: [R] Sweave - landscape figure

2011-08-04 Thread Duncan Murdoch
On 04/08/2011 3: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 … , pdflate

[R] Sweave - landscape figure

2011-08-04 Thread Eduardo M. A. M. Mendes
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