R: how do you embed plots into a tab in RMarkdown in a procedural fashion?

前端 未结 2 1660
误落风尘
误落风尘 2020-12-21 07:46

I can embed plots using just RMarkdown\'s {.tabset}

#### Heading  {.tabset}
##### Subheading 1
```{r, echo=F}
df[[1]]    
```

2条回答
  •  爱一瞬间的悲伤
    2020-12-21 08:09

    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.

提交回复
热议问题