Creating a Presentation with LaTeX Beamer – Including Images from Graphics Files
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
It will often be more efficient to generate graphics in an external software package and then include these files in a LaTeX beamer presentation. The standard LaTeX approach to including graphics can be utilised to perform this task.
Fast Tube by Casper
The graphicx is useful for including graphics files in a presentation and this package has a command includegraphics where we specify the name of the image file to be included and (optionally) some formatting information such as the dimensions of the image in our document.
As an example if we wanted to include a jpg file then we would include a command like this:
includegraphics{plot}
and if we wanted to scale in the horizontal or vertical dimension then we can specify the height and width to use:
includegraphics[height=8cm,width=12cm]{plot}
There are other options as part of the graphicx package that can be used to adjust the display of the image as required.
Other useful resources are provided on the Supplementary Material page.
R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.