ABSTRACT

This chapter describes how to include non-knitted graphics in LaTeX and Markdown documents before turning to dynamically knit R graphics into presentation documents. The main way to include graphics in LaTeX documents is to use the include graphics function to link to image files. To have the full range of features for include graphics, make sure to load the graphicx package in students’ document’s preamble. The scriptsize function transforms the text to smaller than normal size font. The function cite inserts a citation from the bibliography for K. Rohmeyer. Markdown does not easily include ways to resize or reposition an image. If they want to resize or reposition their image, it is often most straightforward to use HTML markup. The syntax for including this and other ggplot2 figures in an R Markdown document is the same as we saw for default R graphics.