Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I can get you most of the way there:</p> <pre><code>\documentclass[letterpaper]{article} \usepackage{lscape} \usepackage{float} \begin{document} &lt;&lt;load, echo=FALSE, results='hide', warning=FALSE, message=FALSE&gt;&gt;= require(ggplot2) @ Two on the first page. &lt;&lt;first, echo=FALSE, fig.height=3, fig.cap="This is first", fig.pos='h'&gt;&gt;= ggplot(mtcars, aes(mpg, wt))+geom_point()+facet_grid(vs ~ am, margins=TRUE) @ Blah, blah, blah. &lt;&lt;second, echo=FALSE, fig.height=3, fig.cap="This is second", fig.pos='h'&gt;&gt;= ggplot(mtcars, aes(mpg, wt))+geom_point()+facet_grid(vs ~ am, margins=TRUE) @ \newpage Second page. Side by side images: \begin{figure}[H] &lt;&lt;third, echo = FALSE, out.width="0.48\\linewidth",fig.width = 3.5,fig.height=2&gt;&gt;= ggplot(mtcars, aes(mpg, wt))+geom_point()+facet_grid(vs ~ am, margins=TRUE) ggplot(mtcars, aes(mpg, wt))+geom_point()+facet_grid(vs ~ am, margins=TRUE) @ \caption{Side by side} \end{figure} \newpage \begin{landscape} This page is rotated. &lt;&lt;fourth, echo = FALSE, fig.width = 4,fig.height = 3,out.width = "0.9\\linewidth"&gt;&gt;= ggplot(mtcars, aes(mpg, wt))+geom_point()+facet_grid(vs ~ am, margins=TRUE) @ \end{landscape} \end{document} </code></pre> <p>The quality looks fine to me, but only if I use my system PDF viewer (Preview, OS X). The built in RStudio PDF viewer has had some rendering issues for me in the past, so I don't use it.</p> <p>I'm not sure how to force the figure on the landscape page to be below the text. Typically, I'd do that with the float package as with the previous figures, but it doesn't seem to work in landscape. I'd recommend that you consult the folks over at tex.stackexchange.com on that one, since it's fairly LaTeX specific.</p> <p>Not the interplay between <code>fig.width</code>,<code>fig.height</code> and <code>out.width</code>. Play with both and see what happens to the size of the image versus the scaling of the elements within the image. One influences the actual figure size when it's created, and the other influences how that image is scaled when it is included in the LaTeX document (I think).</p> <p>Also note that I used the <code>\caption{}</code> in the figure environment for the side-by-sides, since otherwise it will try to create a caption for each figure.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload