I draw my figures as follows.
---
title: "xxx"
output:
pdf_document:
fig_caption: true
---
And then in each fragment
```{r, fig.cap="some caption"}
qplot(1:5)
```
It works very well. However, in pieces where I draw several shapes in a loop, I cannot specify a signature. This does not create any headers:
```{r, fig.cap="another caption"}
qplot(1:5)
qplot(6:10)
```
How can I specify a figure calculated from the same number as the first piece for each chart?
source
share