Skip to content
Prev 308540 / 398506 Next

plots for presentation

Here is a knitr example that shows you how to automate this job (with
the PDF attached):
https://github.com/yihui/knitr-examples/blob/master/053-beamer-only.Rnw

The key is the chunk options fig.show='hold' and fig.keep='all'; knitr
will find \includegraphics in the chunk and replace them with
\only<n>{\includegraphics} where n is the number of the plot. And
fig.keep='all' makes it easier than Sweave, because you can just draw
the plots and all low-level plot changes will be recorded.

Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA
On Fri, Oct 12, 2012 at 3:20 PM, Greg Snow <538280 at gmail.com> wrote:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 053-beamer-only.pdf
Type: application/pdf
Size: 73460 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20121020/86b65c80/attachment.pdf>