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

August 7, 2010
By

(This article was first published on Software for Exploratory Data Analysis and Statistical Modelling, and kindly contributed to R-bloggers)

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 his blog: Software for Exploratory Data Analysis and Statistical Modelling.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Tags: , , , , , , ,

Comments are closed.