Creating a Presentation with LaTeX Beamer – Including Images from Graphics Files

[This article was first published on Software for Exploratory Data Analysis and Statistical Modelling, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
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
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.

To leave a comment for the author, please follow the link and comment on their blog: Software for Exploratory Data Analysis and Statistical Modelling.

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.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)