两侧排排

时间:2019-05-21 10:14:35

标签: r r-markdown powerpoint

RMarkdown:PowerPoint演示文稿。
我想创建两个侧面布局:一个图和一个文本注释。我知道如何在图的右侧放置带有文本注释的布局:

---
title: My Presentation
output: 
  powerpoint_presentation:
    slide_level: 3

---

### My Slide Title.

:::::::::::::: {.columns}
::: {.column}
```{r, eval=T, echo=F}
plot(cars)
\``` # delete those tick "\" to run
:::
::: {.column}
here is my comment bout the plot blabla....
:::
::::::::::::::

但是如何将注释置于情节下方?

1 个答案:

答案 0 :(得分:0)

尝试以下代码:

---
title: "Slides"
author: Scipione Sarlo
date: May 21, 2019
output: powerpoint_presentation
---

# First slide

## test

- first comment
- second comment

# Second slide


:::::::::::::: {.columns}
::: {.column}

```{r, eval = T, echo = F,fig.cap = "comment below the plot here it is",fig.height = 4}
plot(cars)
``` 
:::
::: {.column}

This is an example.

- first plot comment
- second plot comment

:::