I can embed plots using just RMarkdown\'s {.tabset}
{.tabset}
#### Heading {.tabset} ##### Subheading 1 ```{r, echo=F} df[[1]] ```
Adding both plot.new(), dev.off() inside the for loop solves the problem of adding all the figures in the last tab. See the complete solution here.