From the course: Creating Reports and Presentations with R Markdown and RStudio

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Captions in R Markdown

Captions in R Markdown - RStudio Tutorial

From the course: Creating Reports and Presentations with R Markdown and RStudio

Start my 1-month free trial

Captions in R Markdown

- [Lecturer] When writing reports or presentations, which contains many data visualizations it's important to include captions as these give context to a visualization. Here's a screenshot of a GGplot2 Chart and it's caption below. Good captions not only explain what a visualization is, but they also tell you where you are in a report. So here, we can refer that we are in first section of our report. Captions are great, but the ability to cross-reference content including both figures and tables, transforms your complex document into an easy to read and navigate report. Particularly where the cross-references are hyperlinks to the relevant content in your report. There are a few different approaches to using captions in our markdown, lets take a look at them. The three options available to us are. Fig.cap which is a code chunk option, baked into knitr and R Markdown. Captioner a CRAN-hosted package that's quite good. And then this bookdown, which is a NOVA CON hosted package that…

Contents