Chapter 23. Reproducibility, Reports and Slide Shows with knitr

Successfully delivering the results of an analysis can be just as important as the analysis itself, so it is vital to communicate them in an effective way. This can be a written report, a Web site of results, a slide show or a dashboard. In this chapter we focus on the first three, which are made remarkably easy using knitr, a package written by Yihui Xie.

knitr was initially created as a replacement for Sweave for the creation of PDF documents using LATEX interweaved with R code and the generated results. It has since added the capability to work with Markdown for generating HTML documents. While interweaving R code in LATEX and Markdown requires using a somewhat different syntax ...

Get R for Everyone: Advanced Analytics and Graphics now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.